home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1994…tember: Reference Library / Dev.CD Sep 94.toast / Technical Documentation / C.S.M.P. Digests / csmp-digest-v3-035 < prev    next >
Mailbox/MIME Entity  |  1994-07-07  |  72.0 KB  |  [TEXT/MPS ]

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: Mailbox/MIME Entity (archive/mbox).

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert Mailbox/MIME Entity (archive/mbox) magic Supported
1% dexvert Text File (text/txt) fallback Supported
100% file ASCII text, with CR line terminators default
100% checkBytes Printable ASCII default
100% perlTextCheck Likely Text (Perl) default
100% siegfried fmt/950 MIME Email (1.0) default
100% detectItEasy Format: Plain text[CR] default


id metadata
keyvalue
macFileType[TEXT]
macFileCreator[MPS ]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 52 65 63 65 69 76 65 64 | 2d 44 61 74 65 3a 20 57 |Received|-Date: W|
|00000010| 65 64 2c 20 31 35 20 4a | 75 6e 20 31 39 39 34 20 |ed, 15 J|un 1994 |
|00000020| 31 35 3a 33 34 3a 30 30 | 20 2b 30 32 30 30 0d 46 |15:34:00| +0200.F|
|00000030| 72 6f 6d 3a 20 70 6f 74 | 74 69 65 72 40 63 6c 69 |rom: pot|tier@cli|
|00000040| 70 70 65 72 2e 65 6e 73 | 2e 66 72 20 28 46 72 61 |pper.ens|.fr (Fra|
|00000050| 6e 63 6f 69 73 20 50 6f | 74 74 69 65 72 29 0d 53 |ncois Po|ttier).S|
|00000060| 75 62 6a 65 63 74 3a 20 | 63 73 6d 70 2d 64 69 67 |ubject: |csmp-dig|
|00000070| 65 73 74 2d 76 33 2d 30 | 33 35 0d 54 6f 3a 20 63 |est-v3-0|35.To: c|
|00000080| 73 6d 70 2d 64 69 67 65 | 73 74 40 65 6e 73 2e 66 |smp-dige|st@ens.f|
|00000090| 72 0d 44 61 74 65 3a 20 | 57 65 64 2c 20 31 35 20 |r.Date: |Wed, 15 |
|000000a0| 4a 75 6e 20 31 39 39 34 | 20 31 35 3a 33 33 3a 35 |Jun 1994| 15:33:5|
|000000b0| 30 20 2b 30 32 30 30 20 | 28 4d 45 54 20 44 53 54 |0 +0200 |(MET DST|
|000000c0| 29 0d 58 2d 4d 61 69 6c | 65 72 3a 20 45 4c 4d 20 |).X-Mail|er: ELM |
|000000d0| 5b 76 65 72 73 69 6f 6e | 20 32 2e 34 20 50 4c 32 |[version| 2.4 PL2|
|000000e0| 33 5d 0d 4d 69 6d 65 2d | 56 65 72 73 69 6f 6e 3a |3].Mime-|Version:|
|000000f0| 20 31 2e 30 0d 43 6f 6e | 74 65 6e 74 2d 54 79 70 | 1.0.Con|tent-Typ|
|00000100| 65 3a 20 74 65 78 74 2f | 70 6c 61 69 6e 3b 20 63 |e: text/|plain; c|
|00000110| 68 61 72 73 65 74 3d 49 | 53 4f 2d 38 38 35 39 2d |harset=I|SO-8859-|
|00000120| 31 0d 43 6f 6e 74 65 6e | 74 2d 54 72 61 6e 73 66 |1.Conten|t-Transf|
|00000130| 65 72 2d 45 6e 63 6f 64 | 69 6e 67 3a 20 38 62 69 |er-Encod|ing: 8bi|
|00000140| 74 0d 45 72 72 6f 72 73 | 2d 54 6f 3a 20 6c 69 73 |t.Errors|-To: lis|
|00000150| 74 6d 61 6e 40 65 6e 73 | 2e 66 72 0d 52 65 70 6c |tman@ens|.fr.Repl|
|00000160| 79 2d 54 6f 3a 20 70 6f | 74 74 69 65 72 40 63 6c |y-To: po|ttier@cl|
|00000170| 69 70 70 65 72 2e 65 6e | 73 2e 66 72 0d 58 2d 53 |ipper.en|s.fr.X-S|
|00000180| 65 71 75 65 6e 63 65 3a | 20 33 38 0d 0d 43 2e 53 |equence:| 38..C.S|
|00000190| 2e 4d 2e 50 2e 20 44 69 | 67 65 73 74 20 20 20 20 |.M.P. Di|gest |
|000001a0| 20 20 20 20 20 20 20 20 | 20 57 65 64 2c 20 31 35 | | Wed, 15|
|000001b0| 20 4a 75 6e 20 39 34 20 | 20 20 20 20 20 20 56 6f | Jun 94 | Vo|
|000001c0| 6c 75 6d 65 20 33 20 3a | 20 49 73 73 75 65 20 33 |lume 3 :| Issue 3|
|000001d0| 35 0d 20 0d 54 6f 64 61 | 79 27 73 20 54 6f 70 69 |5. .Toda|y's Topi|
|000001e0| 63 73 3a 0d 20 0d 20 20 | 20 20 20 20 20 20 22 4d |cs:. . | "M|
|000001f0| 61 67 69 63 61 6c 22 20 | 63 6f 6e 76 65 72 73 69 |agical" |conversi|
|00000200| 6f 6e 20 66 72 6f 6d 20 | 28 63 68 61 72 20 2a 29 |on from |(char *)|
|00000210| 20 74 6f 20 50 61 73 63 | 61 6c 20 73 74 72 69 6e | to Pasc|al strin|
|00000220| 67 20 69 6e 20 43 2b 2b | 0d 20 20 20 20 20 20 20 |g in C++|. |
|00000230| 20 22 4e 65 77 22 20 62 | 75 67 73 20 69 6e 20 27 | "New" b|ugs in '|
|00000240| 64 65 76 65 6c 6f 70 27 | 20 66 6c 6f 61 74 69 6e |develop'| floatin|
|00000250| 67 20 77 69 6e 64 6f 77 | 20 63 6f 64 65 3f 0d 20 |g window| code?. |
|00000260| 20 20 20 20 20 20 20 44 | 65 74 65 63 74 69 6e 67 | D|etecting|
|00000270| 20 55 6e 69 76 65 72 73 | 61 6c 20 48 65 61 64 65 | Univers|al Heade|
|00000280| 72 73 3f 0d 20 20 20 20 | 20 20 20 20 45 6e 75 6d |rs?. | Enum|
|00000290| 65 72 61 74 69 6e 67 20 | 6d 65 73 73 61 67 65 73 |erating |messages|
|000002a0| 20 66 72 6f 6d 20 50 6f | 77 65 72 54 61 6c 6b 0d | from Po|werTalk.|
|000002b0| 20 20 20 20 20 20 20 20 | 4d 69 63 72 6f 53 65 63 | |MicroSec|
|000002c0| 6f 6e 64 73 20 74 72 61 | 70 20 23 20 61 6e 64 20 |onds tra|p # and |
|000002d0| 61 72 67 75 6d 65 6e 74 | 73 3f 0d 20 20 20 20 20 |argument|s?. |
|000002e0| 20 20 20 4f 6b 2c 20 77 | 68 65 72 65 27 73 20 6d | Ok, w|here's m|
|000002f0| 79 20 51 75 69 63 6b 64 | 72 61 77 20 67 6c 6f 62 |y Quickd|raw glob|
|00000300| 61 6c 73 3f 20 20 28 48 | 65 6c 70 21 29 0d 20 20 |als? (H|elp!). |
|00000310| 20 20 20 20 20 20 53 79 | 6d 61 6e 74 65 63 20 43 | Sy|mantec C|
|00000320| 2b 2b 20 37 2e 30 2d 20 | 61 6e 79 20 67 6f 6f 64 |++ 7.0- |any good|
|00000330| 3f 0d 20 20 20 20 20 20 | 20 20 54 68 72 65 61 64 |?. | Thread|
|00000340| 20 4d 67 72 20 66 6f 72 | 20 62 6c 6f 63 6b 69 6e | Mgr for| blockin|
|00000350| 67 20 49 2d 4f 0d 0d 0d | 0d 54 68 65 20 43 6f 6d |g I-O...|.The Com|
|00000360| 70 2e 53 79 73 2e 4d 61 | 63 2e 50 72 6f 67 72 61 |p.Sys.Ma|c.Progra|
|00000370| 6d 6d 65 72 20 44 69 67 | 65 73 74 20 69 73 20 6d |mmer Dig|est is m|
|00000380| 6f 64 65 72 61 74 65 64 | 20 62 79 20 46 72 61 6e |oderated| by Fran|
|00000390| 63 6f 69 73 20 50 6f 74 | 74 69 65 72 0d 28 70 6f |cois Pot|tier.(po|
|000003a0| 74 74 69 65 72 40 63 6c | 69 70 70 65 72 2e 65 6e |ttier@cl|ipper.en|
|000003b0| 73 2e 66 72 29 2e 0d 20 | 0d 54 68 65 20 64 69 67 |s.fr).. |.The dig|
|000003c0| 65 73 74 20 69 73 20 61 | 20 63 6f 6c 6c 65 63 74 |est is a| collect|
|000003d0| 69 6f 6e 20 6f 66 20 61 | 72 74 69 63 6c 65 20 74 |ion of a|rticle t|
|000003e0| 68 72 65 61 64 73 20 66 | 72 6f 6d 20 74 68 65 20 |hreads f|rom the |
|000003f0| 69 6e 74 65 72 6e 65 74 | 20 6e 65 77 73 67 72 6f |internet| newsgro|
|00000400| 75 70 0d 63 6f 6d 70 2e | 73 79 73 2e 6d 61 63 2e |up.comp.|sys.mac.|
|00000410| 70 72 6f 67 72 61 6d 6d | 65 72 2e 20 20 49 74 20 |programm|er. It |
|00000420| 69 73 20 64 65 73 69 67 | 6e 65 64 20 66 6f 72 20 |is desig|ned for |
|00000430| 70 65 6f 70 6c 65 20 77 | 68 6f 20 72 65 61 64 20 |people w|ho read |
|00000440| 63 2e 73 2e 6d 2e 70 2e | 20 73 65 6d 69 2d 0d 72 |c.s.m.p.| semi-.r|
|00000450| 65 67 75 6c 61 72 6c 79 | 20 61 6e 64 20 77 61 6e |egularly| and wan|
|00000460| 74 20 61 6e 20 61 72 63 | 68 69 76 65 20 6f 66 20 |t an arc|hive of |
|00000470| 74 68 65 20 64 69 73 63 | 75 73 73 69 6f 6e 73 2e |the disc|ussions.|
|00000480| 20 20 49 66 20 79 6f 75 | 20 64 6f 6e 27 74 20 6b | If you| don't k|
|00000490| 6e 6f 77 20 77 68 61 74 | 20 61 0d 6e 65 77 73 67 |now what| a.newsg|
|000004a0| 72 6f 75 70 20 69 73 2c | 20 79 6f 75 20 70 72 6f |roup is,| you pro|
|000004b0| 62 61 62 6c 79 20 64 6f | 6e 27 74 20 68 61 76 65 |bably do|n't have|
|000004c0| 20 61 63 63 65 73 73 20 | 74 6f 20 69 74 2e 20 20 | access |to it. |
|000004d0| 41 73 6b 20 79 6f 75 72 | 20 73 79 73 74 65 6d 73 |Ask your| systems|
|000004e0| 0d 61 64 6d 69 6e 69 73 | 74 72 61 74 6f 72 28 73 |.adminis|trator(s|
|000004f0| 29 20 66 6f 72 20 64 65 | 74 61 69 6c 73 2e 20 20 |) for de|tails. |
|00000500| 49 66 20 79 6f 75 20 64 | 6f 6e 27 74 20 68 61 76 |If you d|on't hav|
|00000510| 65 20 61 63 63 65 73 73 | 20 74 6f 20 6e 65 77 73 |e access| to news|
|00000520| 2c 20 79 6f 75 20 6d 61 | 79 0d 73 74 69 6c 6c 20 |, you ma|y.still |
|00000530| 62 65 20 61 62 6c 65 20 | 74 6f 20 70 6f 73 74 20 |be able |to post |
|00000540| 6d 65 73 73 61 67 65 73 | 20 74 6f 20 74 68 65 20 |messages| to the |
|00000550| 67 72 6f 75 70 20 62 79 | 20 75 73 69 6e 67 20 61 |group by| using a|
|00000560| 20 6d 61 69 6c 20 73 65 | 72 76 65 72 20 6c 69 6b | mail se|rver lik|
|00000570| 65 0d 61 6e 6f 6e 2e 70 | 65 6e 65 74 2e 66 69 20 |e.anon.p|enet.fi |
|00000580| 28 6d 61 69 6c 20 68 65 | 6c 70 40 61 6e 6f 6e 2e |(mail he|lp@anon.|
|00000590| 70 65 6e 65 74 2e 66 69 | 20 66 6f 72 20 6d 6f 72 |penet.fi| for mor|
|000005a0| 65 20 69 6e 66 6f 72 6d | 61 74 69 6f 6e 29 2e 0d |e inform|ation)..|
|000005b0| 20 0d 45 61 63 68 20 69 | 73 73 75 65 20 6f 66 20 | .Each i|ssue of |
|000005c0| 74 68 65 20 64 69 67 65 | 73 74 20 63 6f 6e 74 61 |the dige|st conta|
|000005d0| 69 6e 73 20 6f 6e 65 20 | 6f 72 20 6d 6f 72 65 20 |ins one |or more |
|000005e0| 73 65 74 73 20 6f 66 20 | 61 72 74 69 63 6c 65 73 |sets of |articles|
|000005f0| 20 28 63 61 6c 6c 65 64 | 0d 74 68 72 65 61 64 73 | (called|.threads|
|00000600| 29 2c 20 77 69 74 68 20 | 65 61 63 68 20 73 65 74 |), with |each set|
|00000610| 20 63 6f 72 72 65 73 70 | 6f 6e 64 69 6e 67 20 74 | corresp|onding t|
|00000620| 6f 20 61 20 27 64 69 73 | 63 75 73 73 69 6f 6e 27 |o a 'dis|cussion'|
|00000630| 20 6f 66 20 61 20 70 61 | 72 74 69 63 75 6c 61 72 | of a pa|rticular|
|00000640| 0d 73 75 62 6a 65 63 74 | 2e 20 20 54 68 65 20 61 |.subject|. The a|
|00000650| 72 74 69 63 6c 65 73 20 | 61 72 65 20 6e 6f 74 20 |rticles |are not |
|00000660| 65 64 69 74 65 64 3b 20 | 61 6c 6c 20 61 72 74 69 |edited; |all arti|
|00000670| 63 6c 65 73 20 69 6e 63 | 6c 75 64 65 64 20 69 6e |cles inc|luded in|
|00000680| 20 74 68 69 73 20 64 69 | 67 65 73 74 0d 61 72 65 | this di|gest.are|
|00000690| 20 69 6e 20 74 68 65 69 | 72 20 6f 72 69 67 69 6e | in thei|r origin|
|000006a0| 61 6c 20 70 6f 73 74 65 | 64 20 66 6f 72 6d 20 28 |al poste|d form (|
|000006b0| 61 73 20 72 65 63 65 69 | 76 65 64 20 62 79 20 6f |as recei|ved by o|
|000006c0| 75 72 20 6e 65 77 73 20 | 73 65 72 76 65 72 20 61 |ur news |server a|
|000006d0| 74 0d 6e 65 66 2e 65 6e | 73 2e 66 72 29 2e 20 20 |t.nef.en|s.fr). |
|000006e0| 41 72 74 69 63 6c 65 20 | 74 68 72 65 61 64 73 20 |Article |threads |
|000006f0| 61 72 65 20 6e 6f 74 20 | 61 64 64 65 64 20 74 6f |are not |added to|
|00000700| 20 74 68 65 20 64 69 67 | 65 73 74 20 75 6e 74 69 | the dig|est unti|
|00000710| 6c 20 74 68 65 20 6c 61 | 73 74 0d 61 72 74 69 63 |l the la|st.artic|
|00000720| 6c 65 20 61 64 64 65 64 | 20 74 6f 20 74 68 65 20 |le added| to the |
|00000730| 74 68 72 65 61 64 20 69 | 73 20 61 74 20 6c 65 61 |thread i|s at lea|
|00000740| 73 74 20 74 77 6f 20 77 | 65 65 6b 73 20 6f 6c 64 |st two w|eeks old|
|00000750| 20 28 74 68 69 73 20 69 | 73 20 74 6f 20 65 6e 73 | (this i|s to ens|
|00000760| 75 72 65 20 74 68 61 74 | 0d 74 68 65 20 74 68 72 |ure that|.the thr|
|00000770| 65 61 64 20 69 73 20 64 | 65 61 64 20 62 65 66 6f |ead is d|ead befo|
|00000780| 72 65 20 61 64 64 69 6e | 67 20 69 74 20 74 6f 20 |re addin|g it to |
|00000790| 74 68 65 20 64 69 67 65 | 73 74 29 2e 20 20 41 72 |the dige|st). Ar|
|000007a0| 74 69 63 6c 65 20 74 68 | 72 65 61 64 73 20 74 68 |ticle th|reads th|
|000007b0| 61 74 0d 63 6f 6e 73 69 | 73 74 20 6f 66 20 6f 6e |at.consi|st of on|
|000007c0| 6c 79 20 6f 6e 65 20 6d | 65 73 73 61 67 65 20 61 |ly one m|essage a|
|000007d0| 72 65 20 67 65 6e 65 72 | 61 6c 6c 79 20 6e 6f 74 |re gener|ally not|
|000007e0| 20 69 6e 63 6c 75 64 65 | 64 20 69 6e 20 74 68 65 | include|d in the|
|000007f0| 20 64 69 67 65 73 74 2e | 0d 0d 54 68 65 20 64 69 | digest.|..The di|
|00000800| 67 65 73 74 20 69 73 20 | 6f 66 66 69 63 69 61 6c |gest is |official|
|00000810| 6c 79 20 64 69 73 74 72 | 69 62 75 74 65 64 20 62 |ly distr|ibuted b|
|00000820| 79 20 74 77 6f 20 6d 65 | 61 6e 73 2c 20 62 79 20 |y two me|ans, by |
|00000830| 65 6d 61 69 6c 20 61 6e | 64 20 66 74 70 2e 0d 0d |email an|d ftp...|
|00000840| 49 66 20 79 6f 75 20 77 | 61 6e 74 20 74 6f 20 72 |If you w|ant to r|
|00000850| 65 63 65 69 76 65 20 74 | 68 65 20 64 69 67 65 73 |eceive t|he diges|
|00000860| 74 20 62 79 20 6d 61 69 | 6c 2c 20 73 65 6e 64 20 |t by mai|l, send |
|00000870| 65 6d 61 69 6c 20 74 6f | 20 6c 69 73 74 73 65 72 |email to| listser|
|00000880| 76 40 65 6e 73 2e 66 72 | 0d 77 69 74 68 20 6e 6f |v@ens.fr|.with no|
|00000890| 20 73 75 62 6a 65 63 74 | 20 61 6e 64 20 6f 6e 65 | subject| and one|
|000008a0| 20 6f 66 20 74 68 65 20 | 66 6f 6c 6c 6f 77 69 6e | of the |followin|
|000008b0| 67 20 63 6f 6d 6d 61 6e | 64 73 20 61 73 20 62 6f |g comman|ds as bo|
|000008c0| 64 79 3a 0d 20 20 20 20 | 68 65 6c 70 09 09 20 20 |dy:. |help.. |
|000008d0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 53 65 | | Se|
|000008e0| 6e 64 73 20 79 6f 75 20 | 61 20 73 75 6d 6d 61 72 |nds you |a summar|
|000008f0| 79 20 6f 66 20 63 6f 6d | 6d 61 6e 64 73 0d 20 20 |y of com|mands. |
|00000900| 20 20 73 75 62 73 63 72 | 69 62 65 20 63 73 6d 70 | subscr|ibe csmp|
|00000910| 2d 64 69 67 65 73 74 20 | 59 6f 75 72 20 4e 61 6d |-digest |Your Nam|
|00000920| 65 09 41 64 64 73 20 79 | 6f 75 20 74 6f 20 74 68 |e.Adds y|ou to th|
|00000930| 65 20 6d 61 69 6c 69 6e | 67 20 6c 69 73 74 0d 20 |e mailin|g list. |
|00000940| 20 20 20 73 69 67 6e 6f | 66 66 20 63 73 6d 70 2d | signo|ff csmp-|
|00000950| 64 69 67 65 73 74 09 09 | 09 52 65 6d 6f 76 65 73 |digest..|.Removes|
|00000960| 20 79 6f 75 20 66 72 6f | 6d 20 74 68 65 20 6c 69 | you fro|m the li|
|00000970| 73 74 0d 4f 6e 63 65 20 | 79 6f 75 20 68 61 76 65 |st.Once |you have|
|00000980| 20 73 75 62 73 63 72 69 | 62 65 64 2c 20 79 6f 75 | subscri|bed, you|
|00000990| 20 77 69 6c 6c 20 61 75 | 74 6f 6d 61 74 69 63 61 | will au|tomatica|
|000009a0| 6c 6c 79 20 72 65 63 65 | 69 76 65 20 65 61 63 68 |lly rece|ive each|
|000009b0| 20 6e 65 77 0d 69 73 73 | 75 65 20 61 73 20 69 74 | new.iss|ue as it|
|000009c0| 20 69 73 20 63 72 65 61 | 74 65 64 2e 0d 0d 54 68 | is crea|ted...Th|
|000009d0| 65 20 6f 66 66 69 63 69 | 61 6c 20 66 74 70 20 69 |e offici|al ftp i|
|000009e0| 6e 66 6f 20 69 73 20 2f | 2f 66 74 70 2e 64 61 72 |nfo is /|/ftp.dar|
|000009f0| 74 6d 6f 75 74 68 2e 65 | 64 75 2f 70 75 62 2f 63 |tmouth.e|du/pub/c|
|00000a00| 73 6d 70 2d 64 69 67 65 | 73 74 2e 0d 51 75 65 73 |smp-dige|st..Ques|
|00000a10| 74 69 6f 6e 73 20 72 65 | 6c 61 74 65 64 20 74 6f |tions re|lated to|
|00000a20| 20 74 68 65 20 66 74 70 | 20 73 69 74 65 20 73 68 | the ftp| site sh|
|00000a30| 6f 75 6c 64 20 62 65 20 | 64 69 72 65 63 74 65 64 |ould be |directed|
|00000a40| 20 74 6f 0d 73 63 6f 74 | 74 2e 73 69 6c 76 65 72 | to.scot|t.silver|
|00000a50| 40 64 61 72 74 6d 6f 75 | 74 68 2e 65 64 75 2e 20 |@dartmou|th.edu. |
|00000a60| 43 75 72 72 65 6e 74 6c | 79 20 6e 6f 20 70 72 65 |Currentl|y no pre|
|00000a70| 76 69 6f 75 73 20 76 6f | 6c 75 6d 65 73 20 6f 66 |vious vo|lumes of|
|00000a80| 20 74 68 65 20 43 53 4d | 50 0d 64 69 67 65 73 74 | the CSM|P.digest|
|00000a90| 20 61 72 65 20 61 76 61 | 69 6c 61 62 6c 65 20 74 | are ava|ilable t|
|00000aa0| 68 65 72 65 2e 0d 0d 41 | 6c 73 6f 2c 20 74 68 65 |here...A|lso, the|
|00000ab0| 20 64 69 67 65 73 74 73 | 20 61 72 65 20 61 76 61 | digests| are ava|
|00000ac0| 69 6c 61 62 6c 65 20 74 | 6f 20 57 41 49 53 20 75 |ilable t|o WAIS u|
|00000ad0| 73 65 72 73 2e 20 20 54 | 6f 20 73 65 61 72 63 68 |sers. T|o search|
|00000ae0| 20 62 61 63 6b 20 69 73 | 73 75 65 73 0d 77 69 74 | back is|sues.wit|
|00000af0| 68 20 57 41 49 53 2c 20 | 75 73 65 20 63 6f 6d 70 |h WAIS, |use comp|
|00000b00| 2e 73 79 73 2e 6d 61 63 | 2e 70 72 6f 67 72 61 6d |.sys.mac|.program|
|00000b10| 6d 65 72 2e 73 72 63 2e | 20 57 69 74 68 20 4d 6f |mer.src.| With Mo|
|00000b20| 73 61 69 63 2c 20 75 73 | 65 0d 68 74 74 70 3a 2f |saic, us|e.http:/|
|00000b30| 2f 77 77 77 2e 77 61 69 | 73 2e 63 6f 6d 2f 77 61 |/www.wai|s.com/wa|
|00000b40| 69 73 2d 64 62 73 2f 63 | 6f 6d 70 2e 73 79 73 2e |is-dbs/c|omp.sys.|
|00000b50| 6d 61 63 2e 70 72 6f 67 | 72 61 6d 6d 65 72 2e 68 |mac.prog|rammer.h|
|00000b60| 74 6d 6c 2e 0d 0d 0d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |tml....-|--------|
|00000b70| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000b80| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000b90| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 0d 0d |--------|------..|
|00000ba0| 3e 46 72 6f 6d 20 6f 6c | 65 67 40 70 6f 6e 64 65 |>From ol|eg@ponde|
|00000bb0| 72 2e 63 73 63 69 2e 75 | 6e 74 2e 65 64 75 20 28 |r.csci.u|nt.edu (|
|00000bc0| 4b 69 73 65 6c 79 6f 76 | 20 4f 6c 65 67 29 0d 53 |Kiselyov| Oleg).S|
|00000bd0| 75 62 6a 65 63 74 3a 20 | 22 4d 61 67 69 63 61 6c |ubject: |"Magical|
|00000be0| 22 20 63 6f 6e 76 65 72 | 73 69 6f 6e 20 66 72 6f |" conver|sion fro|
|00000bf0| 6d 20 28 63 68 61 72 20 | 2a 29 20 74 6f 20 50 61 |m (char |*) to Pa|
|00000c00| 73 63 61 6c 20 73 74 72 | 69 6e 67 20 69 6e 20 43 |scal str|ing in C|
|00000c10| 2b 2b 0d 44 61 74 65 3a | 20 33 31 20 4d 61 79 20 |++.Date:| 31 May |
|00000c20| 31 39 39 34 20 31 34 3a | 32 38 3a 31 39 20 47 4d |1994 14:|28:19 GM|
|00000c30| 54 0d 4f 72 67 61 6e 69 | 7a 61 74 69 6f 6e 3a 20 |T.Organi|zation: |
|00000c40| 55 6e 69 76 65 72 73 69 | 74 79 20 6f 66 20 4e 6f |Universi|ty of No|
|00000c50| 72 74 68 20 54 65 78 61 | 73 2c 20 44 65 6e 74 6f |rth Texa|s, Dento|
|00000c60| 6e 0d 0d 54 68 65 72 65 | 20 68 61 73 20 62 65 65 |n..There| has bee|
|00000c70| 6e 20 73 6f 6d 65 20 64 | 69 73 63 75 73 73 69 6f |n some d|iscussio|
|00000c80| 6e 20 72 65 63 65 6e 74 | 6c 79 20 61 62 6f 75 74 |n recent|ly about|
|00000c90| 20 63 6f 6e 76 65 72 73 | 69 6f 6e 20 6f 66 20 61 | convers|ion of a|
|00000ca0| 20 43 20 73 74 72 69 6e | 67 0d 74 6f 20 74 68 65 | C strin|g.to the|
|00000cb0| 20 50 61 73 63 61 6c 20 | 73 74 72 69 6e 67 20 61 | Pascal |string a|
|00000cc0| 6e 64 20 63 6f 72 72 65 | 63 74 6c 79 20 63 61 73 |nd corre|ctly cas|
|00000cd0| 74 69 6e 67 20 6f 66 20 | 74 68 65 20 72 65 73 75 |ting of |the resu|
|00000ce0| 6c 74 2e 0d 49 20 74 68 | 6f 75 67 68 74 20 49 27 |lt..I th|ought I'|
|00000cf0| 64 20 74 68 72 6f 77 20 | 69 6e 20 6d 79 20 63 6f |d throw |in my co|
|00000d00| 75 70 6c 65 20 6f 66 20 | 63 65 6e 74 73 3a 0d 0d |uple of |cents:..|
|00000d10| 46 69 72 73 74 2c 20 6c | 65 74 27 73 20 64 65 66 |First, l|et's def|
|00000d20| 69 6e 65 20 74 68 65 20 | 66 6f 6c 6c 6f 77 69 6e |ine the |followin|
|00000d30| 67 20 63 6c 61 73 73 0d | 0d 63 6c 61 73 73 20 50 |g class.|.class P|
|00000d40| 73 74 72 09 09 2f 2f 20 | 50 61 73 63 61 6c 20 53 |str..// |Pascal S|
|00000d50| 74 72 69 6e 67 2c 20 74 | 68 69 73 20 69 73 20 6a |tring, t|his is j|
|00000d60| 75 73 74 20 61 20 74 79 | 70 65 20 63 6f 6e 76 65 |ust a ty|pe conve|
|00000d70| 72 73 69 6f 6e 0d 7b 0d | 20 20 53 74 72 32 35 35 |rsion.{.| Str255|
|00000d80| 20 70 61 73 5f 73 74 72 | 69 6e 67 3b 0d 70 75 62 | pas_str|ing;.pub|
|00000d90| 6c 69 63 3a 0d 20 20 50 | 73 74 72 28 63 6f 6e 73 |lic:. P|str(cons|
|00000da0| 74 20 63 68 61 72 20 2a | 20 63 5f 73 74 72 29 3b |t char *| c_str);|
|00000db0| 0d 20 7e 50 73 74 72 28 | 76 6f 69 64 29 20 7b 7d |. ~Pstr(|void) {}|
|00000dc0| 0d 20 20 6f 70 65 72 61 | 74 6f 72 20 75 6e 73 69 |. opera|tor unsi|
|00000dd0| 67 6e 65 64 20 63 68 61 | 72 20 63 6f 6e 73 74 20 |gned cha|r const |
|00000de0| 2a 20 28 29 20 7b 20 72 | 65 74 75 72 6e 20 70 61 |* () { r|eturn pa|
|00000df0| 73 5f 73 74 72 69 6e 67 | 3b 20 7d 0d 7d 3b 0d 0d |s_string|; }.};..|
|00000e00| 09 09 09 09 2f 2f 20 55 | 73 65 64 20 74 6f 20 22 |....// U|sed to "|
|00000e10| 69 6d 70 6c 69 63 69 74 | 6c 79 22 20 63 6f 6e 76 |implicit|ly" conv|
|00000e20| 65 72 74 20 66 72 6f 6d | 20 43 20 74 6f 20 0d 50 |ert from| C to .P|
|00000e30| 73 74 72 3a 3a 50 73 74 | 72 28 63 6f 6e 73 74 20 |str::Pst|r(const |
|00000e40| 63 68 61 72 20 2a 20 63 | 5f 73 74 72 29 09 2f 2f |char * c|_str).//|
|00000e50| 20 50 61 73 63 61 6c 20 | 73 74 72 69 6e 67 20 0d | Pascal |string .|
|00000e60| 7b 0d 20 20 73 74 72 6e | 63 70 79 28 28 63 68 61 |{. strn|cpy((cha|
|00000e70| 72 20 2a 29 70 61 73 5f | 73 74 72 69 6e 67 2c 63 |r *)pas_|string,c|
|00000e80| 5f 73 74 72 2c 73 69 7a | 65 6f 66 28 2a 74 68 69 |_str,siz|eof(*thi|
|00000e90| 73 29 2d 32 29 3b 0d 20 | 20 43 74 6f 50 73 74 72 |s)-2);. | CtoPstr|
|00000ea0| 28 28 63 68 61 72 20 2a | 29 70 61 73 5f 73 74 72 |((char *|)pas_str|
|00000eb0| 69 6e 67 29 3b 0d 7d 0d | 0d 41 66 74 65 72 20 74 |ing);.}.|.After t|
|00000ec0| 68 61 74 2c 20 6f 6e 65 | 20 63 61 6e 20 77 72 69 |hat, one| can wri|
|00000ed0| 74 65 20 73 6d 74 68 20 | 6c 69 6b 65 20 74 68 61 |te smth |like tha|
|00000ee0| 74 0d 0d 20 20 63 68 61 | 72 20 2a 20 74 69 74 6c |t.. cha|r * titl|
|00000ef0| 65 20 3d 20 22 73 6f 6d | 65 20 74 69 74 6c 65 22 |e = "som|e title"|
|00000f00| 3b 09 0d 20 20 74 68 69 | 73 5f 77 69 6e 64 6f 77 |;.. thi|s_window|
|00000f10| 20 3d 20 4e 65 77 57 69 | 6e 64 6f 77 28 6e 69 6c | = NewWi|ndow(nil|
|00000f20| 2c 72 65 63 74 20 2b 3d | 20 77 69 6e 64 6f 77 5f |,rect +=| window_|
|00000f30| 6f 66 66 73 65 74 2c 28 | 50 73 74 72 29 74 69 74 |offset,(|Pstr)tit|
|00000f40| 6c 65 2c 2e 2e 2e 2e 65 | 74 63 29 0d 0d 49 74 20 |le,....e|tc)..It |
|00000f50| 69 73 20 54 48 41 54 20 | 73 69 6d 70 6c 65 3a 20 |is THAT |simple: |
|00000f60| 6a 75 73 74 20 70 75 74 | 74 69 6e 67 20 28 50 73 |just put|ting (Ps|
|00000f70| 74 72 29 20 62 65 66 6f | 72 65 20 61 20 43 20 73 |tr) befo|re a C s|
|00000f80| 74 72 69 6e 67 20 6d 61 | 67 69 63 61 6c 6c 79 20 |tring ma|gically |
|00000f90| 63 6f 6e 76 65 72 74 73 | 0d 69 74 20 74 6f 20 61 |converts|.it to a|
|00000fa0| 20 50 61 73 63 61 6c 20 | 73 74 72 69 6e 67 20 61 | Pascal |string a|
|00000fb0| 6e 64 20 22 64 6f 65 73 | 22 20 63 6f 72 72 65 63 |nd "does|" correc|
|00000fc0| 74 20 63 61 73 74 69 6e | 67 2c 20 77 68 69 6c 65 |t castin|g, while|
|00000fd0| 20 6b 65 65 70 69 6e 67 | 20 74 68 65 20 6f 72 69 | keeping| the ori|
|00000fe0| 67 69 6e 61 6c 0d 43 20 | 73 74 72 69 6e 67 20 69 |ginal.C |string i|
|00000ff0| 6e 74 61 63 74 2e 0d 0d | 54 68 65 20 77 61 79 20 |ntact...|The way |
|00001000| 49 20 66 69 67 75 72 65 | 20 69 74 2c 20 28 50 73 |I figure| it, (Ps|
|00001010| 74 72 29 74 69 74 6c 65 | 20 73 68 6f 75 6c 64 20 |tr)title| should |
|00001020| 6d 61 6b 65 20 61 6e 20 | 6f 62 6a 65 63 74 20 6f |make an |object o|
|00001030| 66 20 74 79 70 65 20 50 | 73 74 72 0d 66 72 6f 6d |f type P|str.from|
|00001040| 20 27 74 69 74 6c 65 27 | 20 62 79 20 61 70 70 6c | 'title'| by appl|
|00001050| 79 69 6e 67 20 74 68 65 | 20 50 73 74 72 3a 3a 50 |ying the| Pstr::P|
|00001060| 73 74 72 28 63 6f 6e 73 | 74 20 63 68 61 72 20 2a |str(cons|t char *|
|00001070| 20 63 5f 73 74 72 29 0d | 63 6f 6e 73 74 72 75 63 | c_str).|construc|
|00001080| 74 6f 72 2e 20 53 69 6e | 63 65 20 4e 65 77 57 69 |tor. Sin|ce NewWi|
|00001090| 6e 64 6f 77 28 29 20 72 | 65 71 75 69 72 65 73 20 |ndow() r|equires |
|000010a0| 61 20 70 61 73 63 61 6c | 20 73 74 72 69 6e 67 20 |a pascal| string |
|000010b0| 61 73 20 69 74 73 20 74 | 68 69 72 64 0d 61 72 67 |as its t|hird.arg|
|000010c0| 75 6d 65 6e 74 2c 20 74 | 68 65 20 6f 70 65 72 61 |ument, t|he opera|
|000010d0| 74 6f 72 20 27 75 6e 73 | 69 67 6e 65 64 20 63 68 |tor 'uns|igned ch|
|000010e0| 61 72 20 63 6f 6e 73 74 | 20 2a 27 20 77 6f 75 6c |ar const| *' woul|
|000010f0| 64 20 61 70 70 6c 79 2c | 20 77 68 69 63 68 0d 67 |d apply,| which.g|
|00001100| 69 76 65 73 20 65 78 61 | 63 74 6c 79 20 77 68 61 |ives exa|ctly wha|
|00001110| 74 20 4e 65 77 57 69 6e | 64 6f 77 28 29 20 77 61 |t NewWin|dow() wa|
|00001120| 6e 74 73 2e 20 41 6e 64 | 20 68 65 72 65 20 68 6f |nts. And| here ho|
|00001130| 77 20 69 74 20 61 63 74 | 75 61 6c 6c 79 20 77 6f |w it act|ually wo|
|00001140| 72 6b 73 0d 28 70 65 65 | 6b 65 64 20 66 72 6f 6d |rks.(pee|ked from|
|00001150| 20 74 68 65 20 6f 62 6a | 65 63 74 20 63 6f 64 65 | the obj|ect code|
|00001160| 20 67 65 6e 65 72 61 74 | 65 64 20 62 79 20 74 68 | generat|ed by th|
|00001170| 65 20 53 79 6d 61 6e 74 | 65 63 20 43 2b 2b 20 63 |e Symant|ec C++ c|
|00001180| 6f 6d 70 69 6c 65 72 29 | 3a 0d 74 68 65 20 63 6f |ompiler)|:.the co|
|00001190| 6d 70 69 6c 65 72 20 61 | 6c 6c 6f 63 61 74 65 73 |mpiler a|llocates|
|000011a0| 20 32 35 36 20 62 79 74 | 65 73 20 6f 6e 20 73 74 | 256 byt|es on st|
|000011b0| 61 63 6b 2c 20 63 6f 70 | 69 65 73 20 74 68 65 20 |ack, cop|ies the |
|000011c0| 43 20 73 74 72 69 6e 67 | 20 69 6e 0d 74 68 65 72 |C string| in.ther|
|000011d0| 65 2c 20 63 61 6c 6c 73 | 20 43 74 6f 50 73 74 72 |e, calls| CtoPstr|
|000011e0| 28 29 2c 20 61 6e 64 20 | 74 68 65 6e 20 70 75 73 |(), and |then pus|
|000011f0| 68 65 73 20 74 68 65 20 | 61 64 64 72 65 73 73 20 |hes the |address |
|00001200| 6f 66 20 74 68 61 74 20 | 74 65 6d 70 6f 72 61 72 |of that |temporar|
|00001210| 79 0d 50 41 53 43 41 4c | 20 73 74 72 69 6e 67 20 |y.PASCAL| string |
|00001220| 69 6e 74 6f 20 73 74 61 | 63 6b 20 66 6f 72 20 4e |into sta|ck for N|
|00001230| 65 77 57 69 6e 64 6f 77 | 28 29 2e 20 41 66 74 65 |ewWindow|(). Afte|
|00001240| 72 20 74 68 65 20 4e 65 | 77 57 69 6e 64 6f 77 28 |r the Ne|wWindow(|
|00001250| 29 0d 72 65 74 75 72 6e | 73 2c 20 74 68 65 20 74 |).return|s, the t|
|00001260| 65 6d 70 6f 72 61 72 79 | 20 73 70 61 63 65 20 61 |emporary| space a|
|00001270| 6c 6c 6f 63 61 74 65 64 | 20 66 6f 72 20 74 68 65 |llocated| for the|
|00001280| 20 50 61 73 63 61 6c 20 | 73 74 72 69 6e 67 20 69 | Pascal |string i|
|00001290| 73 0d 64 69 73 70 6f 73 | 65 64 20 6f 66 20 28 62 |s.dispos|ed of (b|
|000012a0| 79 20 73 69 6d 70 6c 79 | 20 69 6e 63 72 65 6d 65 |y simply| increme|
|000012b0| 6e 74 69 6e 67 20 41 37 | 2c 20 6d 69 6e 64 20 79 |nting A7|, mind y|
|000012c0| 6f 75 29 2e 20 20 54 6f | 20 6d 65 2c 20 69 74 20 |ou). To| me, it |
|000012d0| 6c 6f 6f 6b 73 0d 65 78 | 61 63 74 6c 79 20 61 73 |looks.ex|actly as|
|000012e0| 20 49 20 77 61 6e 74 65 | 64 3a 20 63 6f 6e 76 65 | I wante|d: conve|
|000012f0| 72 73 69 6f 6e 20 6f 66 | 20 61 20 43 20 73 74 72 |rsion of| a C str|
|00001300| 69 6e 67 20 69 6e 74 6f | 20 74 68 65 20 50 41 53 |ing into| the PAS|
|00001310| 43 41 4c 20 6f 6e 65 0d | 77 69 74 68 6f 75 74 20 |CAL one.|without |
|00001320| 6d 65 73 73 69 6e 67 20 | 75 70 20 74 68 65 20 43 |messing |up the C|
|00001330| 20 73 74 72 69 6e 67 2e | 0d 0d 48 65 72 65 20 69 | string.|..Here i|
|00001340| 73 20 6d 6f 72 65 20 6f | 66 20 74 68 65 20 73 61 |s more o|f the sa|
|00001350| 6d 65 20 69 64 65 61 3a | 0d 0d 63 6c 61 73 73 20 |me idea:|..class |
|00001360| 53 63 72 65 65 6e 52 65 | 63 74 20 3a 20 70 75 62 |ScreenRe|ct : pub|
|00001370| 6c 69 63 20 52 65 63 74 | 0d 7b 0d 70 75 62 6c 69 |lic Rect|.{.publi|
|00001380| 63 3a 0d 20 20 53 63 72 | 65 65 6e 52 65 63 74 28 |c:. Scr|eenRect(|
|00001390| 63 6f 6e 73 74 20 52 65 | 63 74 26 20 72 65 63 74 |const Re|ct& rect|
|000013a0| 29 09 20 7b 20 2a 74 68 | 69 73 20 3d 20 2a 28 53 |). { *th|is = *(S|
|000013b0| 63 72 65 65 6e 52 65 63 | 74 20 2a 29 26 72 65 63 |creenRec|t *)&rec|
|000013c0| 74 3b 20 7d 0d 20 20 53 | 63 72 65 65 6e 52 65 63 |t; }. S|creenRec|
|000013d0| 74 28 63 6f 6e 73 74 20 | 72 6f 77 63 6f 6c 26 20 |t(const |rowcol& |
|000013e0| 68 65 69 67 68 74 77 69 | 64 74 68 29 3b 0d 20 20 |heightwi|dth);. |
|000013f0| 7e 53 63 72 65 65 6e 52 | 65 63 74 28 76 6f 69 64 |~ScreenR|ect(void|
|00001400| 29 20 7b 7d 0d 20 20 53 | 63 72 65 65 6e 52 65 63 |) {}. S|creenRec|
|00001410| 74 26 20 6f 70 65 72 61 | 74 6f 72 20 2b 3d 20 28 |t& opera|tor += (|
|00001420| 63 6f 6e 73 74 20 69 6e | 74 20 6f 66 66 73 65 74 |const in|t offset|
|00001430| 29 3b 0d 20 20 6f 70 65 | 72 61 74 6f 72 20 52 65 |);. ope|rator Re|
|00001440| 63 74 20 2a 20 28 76 6f | 69 64 29 20 7b 20 72 65 |ct * (vo|id) { re|
|00001450| 74 75 72 6e 20 74 68 69 | 73 3b 20 7d 0d 20 20 76 |turn thi|s; }. v|
|00001460| 6f 69 64 20 70 72 69 6e | 74 28 63 6f 6e 73 74 20 |oid prin|t(const |
|00001470| 63 68 61 72 20 2a 20 74 | 69 74 6c 65 20 3d 20 22 |char * t|itle = "|
|00001480| 22 29 20 63 6f 6e 73 74 | 3b 0d 7d 3b 0d 09 09 09 |") const|;.};....|
|00001490| 09 2f 2f 20 43 72 65 61 | 74 65 20 61 20 72 65 63 |.// Crea|te a rec|
|000014a0| 74 61 6e 67 6c 65 20 6f | 66 20 67 69 76 65 6e 20 |tangle o|f given |
|000014b0| 68 65 69 67 68 74 2f 77 | 69 64 74 68 0d 09 09 09 |height/w|idth....|
|000014c0| 09 2f 2f 20 70 6f 73 69 | 74 69 6f 6e 65 64 20 61 |.// posi|tioned a|
|000014d0| 74 20 74 68 65 20 6f 72 | 69 67 69 6e 0d 53 63 72 |t the or|igin.Scr|
|000014e0| 65 65 6e 52 65 63 74 3a | 3a 53 63 72 65 65 6e 52 |eenRect:|:ScreenR|
|000014f0| 65 63 74 28 63 6f 6e 73 | 74 20 72 6f 77 63 6f 6c |ect(cons|t rowcol|
|00001500| 26 20 68 65 69 67 68 74 | 77 69 64 74 68 29 0d 7b |& height|width).{|
|00001510| 0d 20 20 6c 65 66 74 20 | 3d 20 74 6f 70 20 3d 20 |. left |= top = |
|00001520| 30 3b 0d 20 20 62 6f 74 | 74 6f 6d 20 3d 20 68 65 |0;. bot|tom = he|
|00001530| 69 67 68 74 77 69 64 74 | 68 2e 72 6f 77 28 29 3b |ightwidt|h.row();|
|00001540| 0d 20 20 72 69 67 68 74 | 20 20 3d 20 68 65 69 67 |. right| = heig|
|00001550| 68 74 77 69 64 74 68 2e | 63 6f 6c 28 29 3b 0d 7d |htwidth.|col();.}|
|00001560| 0d 0d 09 09 09 09 2f 2f | 20 53 68 69 66 74 69 6e |......//| Shiftin|
|00001570| 67 20 61 20 72 65 63 74 | 61 6e 67 6c 65 20 62 79 |g a rect|angle by|
|00001580| 20 74 68 65 20 73 61 6d | 65 20 61 6d 6f 75 6e 74 | the sam|e amount|
|00001590| 0d 09 09 09 09 2f 2f 20 | 69 6e 20 58 20 61 6e 64 |.....// |in X and|
|000015a0| 20 59 0d 53 63 72 65 65 | 6e 52 65 63 74 26 20 53 | Y.Scree|nRect& S|
|000015b0| 63 72 65 65 6e 52 65 63 | 74 3a 3a 6f 70 65 72 61 |creenRec|t::opera|
|000015c0| 74 6f 72 20 2b 3d 20 28 | 63 6f 6e 73 74 20 69 6e |tor += (|const in|
|000015d0| 74 20 6f 66 66 73 65 74 | 29 0d 7b 20 0d 20 20 74 |t offset|).{ . t|
|000015e0| 6f 70 20 2b 3d 20 6f 66 | 66 73 65 74 3b 20 62 6f |op += of|fset; bo|
|000015f0| 74 74 6f 6d 20 2b 3d 20 | 6f 66 66 73 65 74 3b 20 |ttom += |offset; |
|00001600| 6c 65 66 74 20 2b 3d 20 | 6f 66 66 73 65 74 3b 20 |left += |offset; |
|00001610| 72 69 67 68 74 20 2b 3d | 20 6f 66 66 73 65 74 3b |right +=| offset;|
|00001620| 0d 20 20 72 65 74 75 72 | 6e 20 2a 74 68 69 73 3b |. retur|n *this;|
|00001630| 0d 7d 0d 0d 0d 54 68 65 | 6e 20 49 20 63 61 6e 20 |.}...The|n I can |
|00001640| 77 72 69 74 65 0d 09 53 | 63 72 65 65 6e 52 65 63 |write..S|creenRec|
|00001650| 74 20 73 75 62 5f 68 6f | 72 69 7a 6f 6e 28 71 5f |t sub_ho|rizon(q_|
|00001660| 62 6f 75 6e 64 73 28 29 | 29 3b 0d 09 73 75 62 5f |bounds()|);..sub_|
|00001670| 68 6f 72 69 7a 6f 6e 2e | 70 72 69 6e 74 28 22 73 |horizon.|print("s|
|00001680| 75 62 20 68 6f 72 69 7a | 6f 6e 22 29 3b 0d 09 45 |ub horiz|on");..E|
|00001690| 72 61 73 65 52 65 63 74 | 28 73 75 62 5f 68 6f 72 |raseRect|(sub_hor|
|000016a0| 69 7a 6f 6e 29 3b 0d 0d | 6f 72 2c 20 65 76 65 6e |izon);..|or, even|
|000016b0| 20 63 72 61 7a 69 65 72 | 2c 0d 0d 53 63 72 65 65 | crazier|,..Scree|
|000016c0| 6e 57 69 6e 64 6f 77 3a | 3a 53 63 72 65 65 6e 57 |nWindow:|:ScreenW|
|000016d0| 69 6e 64 6f 77 28 53 63 | 72 65 65 6e 52 65 63 74 |indow(Sc|reenRect|
|000016e0| 20 72 65 63 74 2c 20 63 | 6f 6e 73 74 20 63 68 61 | rect, c|onst cha|
|000016f0| 72 20 2a 20 74 69 74 6c | 65 29 0d 7b 0d 09 63 6f |r * titl|e).{..co|
|00001700| 6e 73 74 20 69 6e 74 20 | 77 69 6e 64 6f 77 5f 6f |nst int |window_o|
|00001710| 66 66 73 65 74 20 3d 20 | 31 30 30 3b 09 09 2f 2f |ffset = |100;..//|
|00001720| 20 43 61 6e 6e 6f 74 20 | 62 65 20 30 20 6f 72 20 | Cannot |be 0 or |
|00001730| 73 6d 61 6c 6c 21 0d 09 | 74 68 69 73 5f 77 69 6e |small!..|this_win|
|00001740| 64 6f 77 20 3d 20 4e 65 | 77 57 69 6e 64 6f 77 28 |dow = Ne|wWindow(|
|00001750| 6e 69 6c 2c 72 65 63 74 | 20 2b 3d 20 77 69 6e 64 |nil,rect| += wind|
|00001760| 6f 77 5f 6f 66 66 73 65 | 74 2c 28 50 73 74 72 29 |ow_offse|t,(Pstr)|
|00001770| 74 69 74 6c 65 2c 2e 2e | 2e 0d 7d 0d 0d 53 6f 2c |title,..|..}..So,|
|00001780| 20 61 6c 6c 20 51 75 69 | 63 6b 44 72 61 77 20 66 | all Qui|ckDraw f|
|00001790| 75 6e 63 74 69 6f 6e 73 | 20 41 55 54 4f 4d 41 54 |unctions| AUTOMAT|
|000017a0| 49 43 41 4c 4c 59 20 61 | 63 63 65 70 74 20 53 63 |ICALLY a|ccept Sc|
|000017b0| 72 65 65 6e 52 65 63 74 | 20 61 73 20 69 66 20 69 |reenRect| as if i|
|000017c0| 74 0d 77 65 72 65 20 52 | 65 63 74 20 2a 2e 0d 54 |t.were R|ect *..T|
|000017d0| 68 69 73 20 77 61 79 2c | 20 6f 6e 65 20 63 61 6e |his way,| one can|
|000017e0| 20 62 75 69 6c 64 20 43 | 2b 2b 20 63 6c 61 73 73 | build C|++ class|
|000017f0| 65 73 20 61 72 6f 75 6e | 64 20 61 6c 6c 20 51 75 |es aroun|d all Qu|
|00001800| 69 63 6b 44 72 61 77 20 | 28 61 6e 64 20 6f 74 68 |ickDraw |(and oth|
|00001810| 65 72 0d 4f 53 29 20 64 | 61 74 61 20 74 79 70 65 |er.OS) d|ata type|
|00001820| 73 2c 20 61 6e 64 20 6f | 6e 65 20 63 61 6e 20 73 |s, and o|ne can s|
|00001830| 74 69 6c 6c 20 75 73 65 | 20 6f 72 69 67 69 6e 61 |till use| origina|
|00001840| 6c 20 51 75 69 63 6b 44 | 72 61 77 20 66 75 6e 63 |l QuickD|raw func|
|00001850| 74 69 6f 6e 73 20 6f 6e | 0d 74 68 65 20 6e 65 77 |tions on|.the new|
|00001860| 20 22 6f 62 6a 65 63 74 | 73 22 2e 20 49 27 76 65 | "object|s". I've|
|00001870| 20 64 6f 6e 65 20 6a 75 | 73 74 20 74 68 61 74 20 | done ju|st that |
|00001880| 66 6f 72 20 61 20 66 65 | 77 20 4f 53 20 64 61 74 |for a fe|w OS dat|
|00001890| 61 20 74 79 70 65 73 2c | 20 49 20 63 61 6e 0d 70 |a types,| I can.p|
|000018a0| 6f 73 74 20 69 74 20 69 | 66 20 74 68 65 72 65 20 |ost it i|f there |
|000018b0| 69 73 20 73 6f 6d 65 20 | 69 6e 74 65 72 65 73 74 |is some |interest|
|000018c0| 2e 0d 0d 42 54 57 2c 20 | 74 68 69 73 20 61 6c 6c |...BTW, |this all|
|000018d0| 20 69 73 20 70 65 72 66 | 65 63 74 6c 79 20 6c 65 | is perf|ectly le|
|000018e0| 67 61 6c 20 43 2b 2b 20 | 61 6e 64 20 77 6f 75 6c |gal C++ |and woul|
|000018f0| 64 20 77 6f 72 6b 20 65 | 76 65 72 79 77 68 65 72 |d work e|verywher|
|00001900| 65 2e 20 54 68 65 0d 63 | 6f 64 65 20 73 6e 69 70 |e. The.c|ode snip|
|00001910| 70 65 74 73 20 69 6e 20 | 74 68 69 73 20 70 6f 73 |pets in |this pos|
|00001920| 74 20 61 72 65 20 66 72 | 61 67 6d 65 6e 74 73 20 |t are fr|agments |
|00001930| 6f 66 20 61 6e 20 61 63 | 74 75 61 6c 20 77 6f 72 |of an ac|tual wor|
|00001940| 6b 69 6e 67 0d 70 72 6f | 67 72 61 6d 2e 20 49 74 |king.pro|gram. It|
|00001950| 20 63 6f 6d 70 69 6c 65 | 73 20 77 69 74 68 20 53 | compile|s with S|
|00001960| 79 6d 61 6e 74 65 63 20 | 43 2b 2b 20 76 65 72 73 |ymantec |C++ vers|
|00001970| 69 6f 6e 73 20 36 2e 30 | 2c 20 36 2e 30 2e 31 2c |ions 6.0|, 6.0.1,|
|00001980| 20 61 6e 64 20 37 2e 30 | 2e 0d 0d 09 09 09 09 09 | and 7.0|........|
|00001990| 09 4f 6c 65 67 0d 0d 50 | 2e 53 2e 20 49 27 6d 20 |.Oleg..P|.S. I'm |
|000019a0| 6e 6f 74 20 61 20 66 72 | 65 71 75 65 6e 74 20 72 |not a fr|equent r|
|000019b0| 65 61 64 65 72 20 6f 66 | 20 74 68 69 73 20 6e 65 |eader of| this ne|
|000019c0| 77 73 67 72 6f 75 70 2c | 20 70 6c 65 61 73 65 20 |wsgroup,| please |
|000019d0| 73 65 6e 64 20 61 6e 79 | 20 63 6f 6d 6d 65 6e 74 |send any| comment|
|000019e0| 73 0d 74 6f 20 6f 6c 65 | 67 40 70 6f 6e 64 65 72 |s.to ole|g@ponder|
|000019f0| 2e 63 73 63 69 2e 75 6e | 74 2e 65 64 75 20 6f 72 |.csci.un|t.edu or|
|00001a00| 20 6f 6c 65 67 40 75 6e | 74 2e 65 64 75 0d 0d 0d | oleg@un|t.edu...|
|00001a10| 2b 2b 2b 2b 2b 2b 2b 2b | 2b 2b 2b 2b 2b 2b 2b 2b |++++++++|++++++++|
|00001a20| 2b 2b 2b 2b 2b 2b 2b 2b | 2b 2b 2b 0d 0d 3e 46 72 |++++++++|+++..>Fr|
|00001a30| 6f 6d 20 6c 61 73 73 65 | 68 70 40 69 6d 76 2e 61 |om lasse|hp@imv.a|
|00001a40| 61 75 2e 64 6b 20 28 4c | 61 73 73 65 20 3d 3f 49 |au.dk (L|asse =?I|
|00001a50| 53 4f 2d 38 38 35 39 2d | 31 3f 51 3f 48 69 6c 6c |SO-8859-|1?Q?Hill|
|00001a60| 65 72 3d 46 38 65 3f 3d | 20 50 65 74 65 72 73 65 |er=F8e?=| Peterse|
|00001a70| 6e 29 0d 44 61 74 65 3a | 20 31 20 4a 75 6e 20 31 |n).Date:| 1 Jun 1|
|00001a80| 39 39 34 20 31 33 3a 35 | 39 3a 30 38 20 47 4d 54 |994 13:5|9:08 GMT|
|00001a90| 0d 4f 72 67 61 6e 69 7a | 61 74 69 6f 6e 3a 20 49 |.Organiz|ation: I|
|00001aa0| 6e 66 6f 72 6d 61 74 69 | 6f 6e 20 26 20 4d 65 64 |nformati|on & Med|
|00001ab0| 69 61 20 53 63 69 65 6e | 63 65 2c 20 41 61 72 68 |ia Scien|ce, Aarh|
|00001ac0| 75 73 20 55 6e 69 76 65 | 72 73 69 74 79 2c 20 44 |us Unive|rsity, D|
|00001ad0| 45 4e 4d 41 52 4b 0d 0d | 49 6e 20 61 72 74 69 63 |ENMARK..|In artic|
|00001ae0| 6c 65 20 3c 32 73 66 68 | 69 33 24 33 31 32 40 68 |le <2sfh|i3$312@h|
|00001af0| 65 72 6d 65 73 2e 75 6e | 74 2e 65 64 75 3e 2c 20 |ermes.un|t.edu>, |
|00001b00| 6f 6c 65 67 40 70 6f 6e | 64 65 72 2e 63 73 63 69 |oleg@pon|der.csci|
|00001b10| 2e 75 6e 74 2e 65 64 75 | 20 28 4b 69 73 65 6c 79 |.unt.edu| (Kisely|
|00001b20| 6f 76 0d 4f 6c 65 67 29 | 20 77 72 6f 74 65 3a 0d |ov.Oleg)| wrote:.|
|00001b30| 0d 3e 20 54 68 65 72 65 | 20 68 61 73 20 62 65 65 |.> There| has bee|
|00001b40| 6e 20 73 6f 6d 65 20 64 | 69 73 63 75 73 73 69 6f |n some d|iscussio|
|00001b50| 6e 20 72 65 63 65 6e 74 | 6c 79 20 61 62 6f 75 74 |n recent|ly about|
|00001b60| 20 63 6f 6e 76 65 72 73 | 69 6f 6e 20 6f 66 20 61 | convers|ion of a|
|00001b70| 20 43 20 73 74 72 69 6e | 67 0d 3e 20 74 6f 20 74 | C strin|g.> to t|
|00001b80| 68 65 20 50 61 73 63 61 | 6c 20 73 74 72 69 6e 67 |he Pasca|l string|
|00001b90| 20 61 6e 64 20 63 6f 72 | 72 65 63 74 6c 79 20 63 | and cor|rectly c|
|00001ba0| 61 73 74 69 6e 67 20 6f | 66 20 74 68 65 20 72 65 |asting o|f the re|
|00001bb0| 73 75 6c 74 2e 0d 3e 20 | 49 20 74 68 6f 75 67 68 |sult..> |I though|
|00001bc0| 74 20 49 27 64 20 74 68 | 72 6f 77 20 69 6e 20 6d |t I'd th|row in m|
|00001bd0| 79 20 63 6f 75 70 6c 65 | 20 6f 66 20 63 65 6e 74 |y couple| of cent|
|00001be0| 73 3a 0d 3e 20 0d 3e 20 | 46 69 72 73 74 2c 20 6c |s:.> .> |First, l|
|00001bf0| 65 74 27 73 20 64 65 66 | 69 6e 65 20 74 68 65 20 |et's def|ine the |
|00001c00| 66 6f 6c 6c 6f 77 69 6e | 67 20 63 6c 61 73 73 0d |followin|g class.|
|00001c10| 3e 20 0d 3e 20 63 6c 61 | 73 73 20 50 73 74 72 09 |> .> cla|ss Pstr.|
|00001c20| 09 2f 2f 20 50 61 73 63 | 61 6c 20 53 74 72 69 6e |.// Pasc|al Strin|
|00001c30| 67 2c 20 74 68 69 73 20 | 69 73 20 6a 75 73 74 20 |g, this |is just |
|00001c40| 61 20 74 79 70 65 20 63 | 6f 6e 76 65 72 73 69 6f |a type c|onversio|
|00001c50| 6e 0d 3e 20 7b 0d 3e 20 | 20 20 53 74 72 32 35 35 |n.> {.> | Str255|
|00001c60| 20 70 61 73 5f 73 74 72 | 69 6e 67 3b 0d 3e 20 70 | pas_str|ing;.> p|
|00001c70| 75 62 6c 69 63 3a 0d 3e | 20 20 20 50 73 74 72 28 |ublic:.>| Pstr(|
|00001c80| 63 6f 6e 73 74 20 63 68 | 61 72 20 2a 20 63 5f 73 |const ch|ar * c_s|
|00001c90| 74 72 29 3b 0d 3e 20 20 | 7e 50 73 74 72 28 76 6f |tr);.> |~Pstr(vo|
|00001ca0| 69 64 29 20 7b 7d 0d 3e | 20 20 20 6f 70 65 72 61 |id) {}.>| opera|
|00001cb0| 74 6f 72 20 75 6e 73 69 | 67 6e 65 64 20 63 68 61 |tor unsi|gned cha|
|00001cc0| 72 20 63 6f 6e 73 74 20 | 2a 20 28 29 20 7b 20 72 |r const |* () { r|
|00001cd0| 65 74 75 72 6e 20 70 61 | 73 5f 73 74 72 69 6e 67 |eturn pa|s_string|
|00001ce0| 3b 20 7d 0d 3e 20 7d 3b | 0d 3e 20 41 66 74 65 72 |; }.> };|.> After|
|00001cf0| 20 74 68 61 74 2c 20 6f | 6e 65 20 63 61 6e 20 77 | that, o|ne can w|
|00001d00| 72 69 74 65 20 73 6d 74 | 68 20 6c 69 6b 65 20 74 |rite smt|h like t|
|00001d10| 68 61 74 0d 3e 20 0d 3e | 20 20 20 63 68 61 72 20 |hat.> .>| char |
|00001d20| 2a 20 74 69 74 6c 65 20 | 3d 20 22 73 6f 6d 65 20 |* title |= "some |
|00001d30| 74 69 74 6c 65 22 3b 09 | 0d 3e 20 20 20 74 68 69 |title";.|.> thi|
|00001d40| 73 5f 77 69 6e 64 6f 77 | 20 3d 20 4e 65 77 57 69 |s_window| = NewWi|
|00001d50| 6e 64 6f 77 28 6e 69 6c | 2c 72 65 63 74 20 2b 3d |ndow(nil|,rect +=|
|00001d60| 20 77 69 6e 64 6f 77 5f | 6f 66 66 73 65 74 2c 28 | window_|offset,(|
|00001d70| 50 73 74 72 29 74 69 74 | 6c 65 2c 2e 2e 2e 2e 65 |Pstr)tit|le,....e|
|00001d80| 74 63 29 0d 3e 20 0d 3e | 20 49 74 20 69 73 20 54 |tc).> .>| It is T|
|00001d90| 48 41 54 20 73 69 6d 70 | 6c 65 3a 20 6a 75 73 74 |HAT simp|le: just|
|00001da0| 20 70 75 74 74 69 6e 67 | 20 28 50 73 74 72 29 20 | putting| (Pstr) |
|00001db0| 62 65 66 6f 72 65 20 61 | 20 43 20 73 74 72 69 6e |before a| C strin|
|00001dc0| 67 20 6d 61 67 69 63 61 | 6c 6c 79 20 63 6f 6e 76 |g magica|lly conv|
|00001dd0| 65 72 74 73 0d 3e 20 69 | 74 20 74 6f 20 61 20 50 |erts.> i|t to a P|
|00001de0| 61 73 63 61 6c 20 73 74 | 72 69 6e 67 20 61 6e 64 |ascal st|ring and|
|00001df0| 20 22 64 6f 65 73 22 20 | 63 6f 72 72 65 63 74 20 | "does" |correct |
|00001e00| 63 61 73 74 69 6e 67 2c | 20 77 68 69 6c 65 20 6b |casting,| while k|
|00001e10| 65 65 70 69 6e 67 20 74 | 68 65 20 6f 72 69 67 69 |eeping t|he origi|
|00001e20| 6e 61 6c 0d 3e 20 43 20 | 73 74 72 69 6e 67 20 69 |nal.> C |string i|
|00001e30| 6e 74 61 63 74 2e 0d 3e | 20 0d 0d 41 20 66 72 69 |ntact..>| ..A fri|
|00001e40| 65 6e 64 20 61 6e 64 20 | 49 20 75 73 65 64 20 74 |end and |I used t|
|00001e50| 68 69 73 20 61 70 70 72 | 6f 61 63 68 20 74 6f 20 |his appr|oach to |
|00001e60| 69 6d 70 6c 65 6d 65 6e | 74 20 61 20 73 74 72 69 |implemen|t a stri|
|00001e70| 6e 67 20 63 6c 61 73 73 | 20 74 68 61 74 20 77 6f |ng class| that wo|
|00001e80| 72 6b 65 64 0d 74 72 61 | 6e 73 70 61 72 65 6e 74 |rked.tra|nsparent|
|00001e90| 6c 79 20 77 69 74 68 20 | 50 61 73 63 61 6c 20 73 |ly with |Pascal s|
|00001ea0| 74 72 69 6e 67 73 2c 20 | 77 68 69 6c 65 20 70 72 |trings, |while pr|
|00001eb0| 6f 76 69 64 69 6e 67 20 | 3e 32 35 35 20 63 68 61 |oviding |>255 cha|
|00001ec0| 72 61 63 74 65 72 20 73 | 74 72 69 6e 67 73 2e 0d |racter s|trings..|
|00001ed0| 42 61 73 69 63 61 6c 6c | 79 2c 20 74 68 65 20 63 |Basicall|y, the c|
|00001ee0| 68 61 72 61 63 74 65 72 | 20 73 74 6f 72 61 67 65 |haracter| storage|
|00001ef0| 20 68 61 64 20 61 20 70 | 61 73 63 61 6c 20 6c 65 | had a p|ascal le|
|00001f00| 6e 67 74 68 20 62 79 74 | 65 20 69 6e 20 66 72 6f |ngth byt|e in fro|
|00001f10| 6e 74 20 61 6e 64 20 61 | 20 43 0d 73 74 72 69 6e |nt and a| C.strin|
|00001f20| 67 20 74 65 72 6d 69 6e | 61 74 69 6e 67 20 7a 65 |g termin|ating ze|
|00001f30| 72 6f 20 69 6e 20 74 68 | 65 20 65 6e 64 2e 20 57 |ro in th|e end. W|
|00001f40| 68 65 6e 20 63 61 73 74 | 69 6e 67 20 74 6f 20 75 |hen cast|ing to u|
|00001f50| 6e 73 69 67 6e 65 64 20 | 63 68 61 72 2a 2c 20 74 |nsigned |char*, t|
|00001f60| 68 65 0d 6c 65 6e 67 74 | 68 20 62 79 74 65 20 77 |he.lengt|h byte w|
|00001f70| 6f 75 6c 64 20 62 65 20 | 73 65 74 20 74 6f 20 73 |ould be |set to s|
|00001f80| 6f 6d 65 74 68 69 6e 67 | 20 3c 32 35 35 2c 20 61 |omething| <255, a|
|00001f90| 6e 64 20 61 6c 6c 20 6f | 70 65 72 61 74 69 6f 6e |nd all o|peration|
|00001fa0| 73 20 77 6f 75 6c 64 20 | 63 68 65 63 6b 0d 66 6f |s would |check.fo|
|00001fb0| 72 20 6c 65 6e 67 74 68 | 20 62 79 74 65 20 3c 32 |r length| byte <2|
|00001fc0| 35 35 20 61 6e 64 20 64 | 72 6f 70 20 61 20 74 65 |55 and d|rop a te|
|00001fd0| 72 6d 69 6e 61 74 69 6e | 67 20 7a 65 72 6f 20 61 |rminatin|g zero a|
|00001fe0| 74 20 74 68 65 20 65 6e | 64 2e 20 54 68 69 73 20 |t the en|d. This |
|00001ff0| 77 61 79 2c 20 74 68 65 | 0d 73 74 72 69 6e 67 20 |way, the|.string |
|00002000| 6f 62 6a 65 63 74 20 63 | 6f 75 6c 64 20 62 65 20 |object c|ould be |
|00002010| 70 61 73 73 65 64 20 74 | 6f 20 70 61 73 63 61 6c |passed t|o pascal|
|00002020| 20 72 6f 75 74 69 6e 65 | 73 20 65 78 70 65 63 74 | routine|s expect|
|00002030| 69 6e 67 20 28 56 41 52 | 0d 72 65 73 75 6c 74 3a |ing (VAR|.result:|
|00002040| 53 74 72 4e 4e 4e 29 20 | 70 61 72 61 6d 65 74 65 |StrNNN) |paramete|
|00002050| 72 73 2c 20 61 6e 64 20 | 74 68 65 20 72 65 73 75 |rs, and |the resu|
|00002060| 6c 74 69 6e 67 20 70 61 | 73 63 61 6c 20 73 74 72 |lting pa|scal str|
|00002070| 69 6e 67 20 28 70 6f 73 | 73 69 62 6c 79 20 6e 6f |ing (pos|sibly no|
|00002080| 74 0d 63 6f 72 72 65 63 | 74 6c 79 20 30 20 74 65 |t.correc|tly 0 te|
|00002090| 72 6d 69 6e 61 74 65 64 | 29 20 77 6f 75 6c 64 20 |rminated|) would |
|000020a0| 62 65 20 75 73 61 62 6c | 65 2e 0d 0d 41 6c 61 73 |be usabl|e...Alas|
|000020b0| 20 74 68 69 73 20 62 72 | 6f 6b 65 20 77 68 65 6e | this br|oke when|
|000020c0| 20 77 65 20 73 77 69 74 | 63 68 65 64 20 66 72 6f | we swit|ched fro|
|000020d0| 6d 20 53 79 6d 61 6e 74 | 65 63 20 43 2b 2b 20 74 |m Symant|ec C++ t|
|000020e0| 6f 20 4d 65 74 72 6f 57 | 65 72 6b 73 2e 20 57 65 |o MetroW|erks. We|
|000020f0| 0d 68 61 76 65 6e 27 74 | 20 74 72 69 65 64 20 69 |.haven't| tried i|
|00002100| 74 20 77 69 74 68 20 74 | 68 65 20 6c 61 74 65 73 |t with t|he lates|
|00002110| 74 20 72 65 6c 65 61 73 | 65 2c 20 74 68 6f 75 67 |t releas|e, thoug|
|00002120| 68 2e 0d 0d 57 69 74 68 | 20 53 79 6d 61 6e 74 65 |h...With| Symante|
|00002130| 63 20 43 2b 2b 2c 20 69 | 74 20 77 6f 72 6b 65 64 |c C++, i|t worked|
|00002140| 20 67 72 65 61 74 2e 20 | 4e 6f 20 6d 6f 72 65 20 | great. |No more |
|00002150| 43 2d 53 74 72 69 6e 67 | 2f 53 74 72 32 35 35 20 |C-String|/Str255 |
|00002160| 68 61 73 73 6c 65 73 2e | 20 4a 75 73 74 0d 61 6c |hassles.| Just.al|
|00002170| 77 61 79 73 20 75 73 65 | 20 53 74 72 69 6e 67 2e |ways use| String.|
|00002180| 20 50 65 72 69 6f 64 2e | 0d 0d 49 66 20 74 68 65 | Period.|..If the|
|00002190| 72 65 20 69 73 20 61 6e | 79 20 69 6e 74 65 72 65 |re is an|y intere|
|000021a0| 73 74 2c 20 49 20 63 6f | 75 6c 64 20 70 6f 73 74 |st, I co|uld post|
|000021b0| 20 74 68 65 20 73 6f 75 | 72 63 65 2e 0d 0d 3e 20 | the sou|rce...> |
|000021c0| 50 2e 53 2e 20 49 27 6d | 20 6e 6f 74 20 61 20 66 |P.S. I'm| not a f|
|000021d0| 72 65 71 75 65 6e 74 20 | 72 65 61 64 65 72 20 6f |requent |reader o|
|000021e0| 66 20 74 68 69 73 20 6e | 65 77 73 67 72 6f 75 70 |f this n|ewsgroup|
|000021f0| 2c 20 70 6c 65 61 73 65 | 20 73 65 6e 64 20 61 6e |, please| send an|
|00002200| 79 20 63 6f 6d 6d 65 6e | 74 73 0d 3e 20 74 6f 20 |y commen|ts.> to |
|00002210| 6f 6c 65 67 40 70 6f 6e | 64 65 72 2e 63 73 63 69 |oleg@pon|der.csci|
|00002220| 2e 75 6e 74 2e 65 64 75 | 20 6f 72 20 6f 6c 65 67 |.unt.edu| or oleg|
|00002230| 40 75 6e 74 2e 65 64 75 | 0d 0d 2d 2d 0d 4c 61 73 |@unt.edu|..--.Las|
|00002240| 73 65 20 48 69 6c 6c 65 | 72 78 65 20 50 65 74 65 |se Hille|rxe Pete|
|00002250| 72 73 65 6e 20 20 20 20 | 20 21 20 20 20 20 20 2a |rsen | ! *|
|00002260| 20 20 20 20 20 20 20 5c | 0d 49 6e 66 6f 72 6d 61 | \|.Informa|
|00002270| 74 69 6f 6e 20 26 20 4d | 65 64 69 61 20 53 63 69 |tion & M|edia Sci|
|00002280| 65 6e 63 65 20 21 20 20 | 20 20 20 20 20 20 2d 2d |ence ! | --|
|00002290| 2d 20 20 20 7c 0d 45 72 | 68 75 73 20 55 6e 69 76 |- |.Er|hus Univ|
|000022a0| 65 72 73 69 74 79 20 20 | 20 20 20 20 20 20 20 20 |ersity | |
|000022b0| 20 20 21 20 20 20 20 20 | 2f 20 20 20 20 20 20 20 | ! |/ |
|000022c0| 2f 0d 44 45 4e 4d 41 52 | 4b 20 20 20 20 20 20 20 |/.DENMAR|K |
|000022d0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 21 0d | | !.|
|000022e0| 0d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |.-------|--------|
|000022f0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 0d 0d 3e 46 |--------|----..>F|
|00002300| 72 6f 6d 20 65 67 75 72 | 6e 65 79 40 76 63 64 2e |rom egur|ney@vcd.|
|00002310| 68 70 2e 63 6f 6d 20 28 | 45 64 64 79 20 4a 2e 20 |hp.com (|Eddy J. |
|00002320| 47 75 72 6e 65 79 29 0d | 53 75 62 6a 65 63 74 3a |Gurney).|Subject:|
|00002330| 20 22 4e 65 77 22 20 62 | 75 67 73 20 69 6e 20 27 | "New" b|ugs in '|
|00002340| 64 65 76 65 6c 6f 70 27 | 20 66 6c 6f 61 74 69 6e |develop'| floatin|
|00002350| 67 20 77 69 6e 64 6f 77 | 20 63 6f 64 65 3f 0d 44 |g window| code?.D|
|00002360| 61 74 65 3a 20 53 61 74 | 2c 20 32 38 20 4d 61 79 |ate: Sat|, 28 May|
|00002370| 20 31 39 39 34 20 32 32 | 3a 31 30 3a 30 39 20 47 | 1994 22|:10:09 G|
|00002380| 4d 54 0d 4f 72 67 61 6e | 69 7a 61 74 69 6f 6e 3a |MT.Organ|ization:|
|00002390| 20 48 65 77 6c 65 74 74 | 2d 50 61 63 6b 61 72 64 | Hewlett|-Packard|
|000023a0| 20 56 43 44 0d 0d 49 20 | 72 65 63 65 6e 74 6c 79 | VCD..I |recently|
|000023b0| 20 69 6e 63 6f 72 70 6f | 72 61 74 65 64 20 44 65 | incorpo|rated De|
|000023c0| 61 6e 20 59 75 27 73 20 | 22 57 69 6e 64 6f 77 45 |an Yu's |"WindowE|
|000023d0| 78 74 65 6e 73 69 6f 6e | 73 2e 63 22 20 6c 69 62 |xtension|s.c" lib|
|000023e0| 72 61 72 79 20 28 61 72 | 74 69 63 6c 65 0d 69 6e |rary (ar|ticle.in|
|000023f0| 20 27 64 65 76 65 6c 6f | 70 27 20 69 73 73 75 65 | 'develo|p' issue|
|00002400| 20 31 35 2c 20 22 46 6c | 6f 61 74 69 6e 67 20 57 | 15, "Fl|oating W|
|00002410| 69 6e 64 6f 77 73 3a 20 | 4b 65 65 70 69 6e 67 20 |indows: |Keeping |
|00002420| 41 66 6c 6f 61 74 20 69 | 6e 20 74 68 65 0d 57 69 |Afloat i|n the.Wi|
|00002430| 6e 64 6f 77 20 4d 61 6e | 61 67 65 72 22 2c 20 63 |ndow Man|ager", c|
|00002440| 6f 64 65 20 6f 66 66 20 | 69 73 73 75 65 20 31 36 |ode off |issue 16|
|00002450| 20 6f 72 20 6e 65 77 65 | 72 20 64 6f 20 74 6f 20 | or newe|r do to |
|00002460| 73 6f 6d 65 20 62 75 67 | 20 66 69 78 65 73 29 0d |some bug| fixes).|
|00002470| 69 6e 74 6f 20 6d 79 20 | 61 70 70 6c 69 63 61 74 |into my |applicat|
|00002480| 69 6f 6e 20 74 6f 20 67 | 69 76 65 20 69 74 20 66 |ion to g|ive it f|
|00002490| 6c 6f 61 74 69 6e 67 20 | 77 69 6e 64 6f 77 20 61 |loating |window a|
|000024a0| 62 69 6c 69 74 79 2e 20 | 53 69 6e 63 65 20 74 68 |bility. |Since th|
|000024b0| 65 6e 0d 49 27 76 65 20 | 70 72 65 74 74 79 20 6d |en.I've |pretty m|
|000024c0| 75 63 68 20 68 61 64 20 | 74 6f 20 61 62 61 6e 64 |uch had |to aband|
|000024d0| 6f 6e 20 6d 79 20 70 6c | 61 6e 73 20 74 6f 20 75 |on my pl|ans to u|
|000024e0| 73 65 20 66 6c 6f 61 74 | 69 6e 67 20 77 69 6e 64 |se float|ing wind|
|000024f0| 6f 77 73 0d 73 69 6e 63 | 65 20 4d 6f 64 65 6c 65 |ows.sinc|e Modele|
|00002500| 73 73 20 44 69 61 6c 6f | 67 73 20 64 6f 20 6e 6f |ss Dialo|gs do no|
|00002510| 74 20 77 6f 72 6b 20 63 | 6f 72 72 65 63 74 6c 79 |t work c|orrectly|
|00002520| 20 77 69 74 68 20 66 6c | 6f 61 74 69 6e 67 20 77 | with fl|oating w|
|00002530| 69 6e 64 6f 77 73 0d 5b | 49 73 44 69 61 6c 6f 67 |indows.[|IsDialog|
|00002540| 45 76 65 6e 74 28 29 2f | 44 69 61 6c 6f 67 53 65 |Event()/|DialogSe|
|00002550| 6c 65 63 74 28 29 20 6e | 6f 20 6c 6f 6e 67 65 72 |lect() n|o longer|
|00002560| 20 77 6f 72 6b 2e 2e 2e | 20 77 69 73 68 20 49 20 | work...| wish I |
|00002570| 77 6f 75 6c 64 20 68 61 | 76 65 0d 6b 6e 6f 77 6e |would ha|ve.known|
|00002580| 20 74 68 61 74 20 5f 62 | 65 66 6f 72 65 5f 20 49 | that _b|efore_ I|
|00002590| 20 73 74 61 72 74 65 64 | 2e 2e 2e 20 3a 2d 5d 0d | started|... :-].|
|000025a0| 0d 41 6e 79 77 61 79 2c | 20 49 20 61 6d 20 69 6e |.Anyway,| I am in|
|000025b0| 74 65 72 65 73 74 65 64 | 20 69 6e 20 75 73 69 6e |terested| in usin|
|000025c0| 67 20 74 68 65 20 63 6f | 64 65 20 69 6e 20 61 6e |g the co|de in an|
|000025d0| 6f 74 68 65 72 20 61 70 | 70 20 61 6e 64 20 66 6f |other ap|p and fo|
|000025e0| 75 6e 64 20 74 77 6f 0d | 62 75 67 73 20 77 68 69 |und two.|bugs whi|
|000025f0| 6c 65 20 49 20 77 61 73 | 20 65 78 70 65 72 69 6d |le I was| experim|
|00002600| 65 6e 74 69 6e 67 20 77 | 69 74 68 20 69 74 2e 20 |enting w|ith it. |
|00002610| 53 69 6e 63 65 20 49 27 | 76 65 20 73 65 65 6e 20 |Since I'|ve seen |
|00002620| 73 6f 6d 65 20 64 69 73 | 63 75 73 73 69 6f 6e 0d |some dis|cussion.|
|00002630| 68 65 72 65 20 69 6e 20 | 63 2e 73 2e 6d 2e 70 20 |here in |c.s.m.p |
|00002640| 6f 6e 20 74 68 69 73 20 | 63 6f 64 65 2c 20 49 20 |on this |code, I |
|00002650| 74 68 6f 75 67 68 74 20 | 49 27 64 20 61 73 6b 20 |thought |I'd ask |
|00002660| 69 66 20 61 6e 79 6f 6e | 65 20 68 61 73 20 61 6c |if anyon|e has al|
|00002670| 72 65 61 64 79 0d 66 69 | 78 65 64 20 74 68 65 73 |ready.fi|xed thes|
|00002680| 65 20 62 65 66 6f 72 65 | 20 49 20 61 74 74 65 6d |e before| I attem|
|00002690| 70 74 20 74 6f 20 64 6f | 20 69 74 20 6d 79 73 65 |pt to do| it myse|
|000026a0| 6c 66 2e 0d 0d 2a 20 46 | 69 72 73 74 20 62 75 67 |lf...* F|irst bug|
|000026b0| 3a 0d 4f 70 65 6e 20 61 | 20 6e 65 77 20 77 69 6e |:.Open a| new win|
|000026c0| 64 6f 77 2c 20 41 2e 20 | 4f 70 65 6e 20 61 20 6e |dow, A. |Open a n|
|000026d0| 65 77 20 77 69 6e 64 6f | 77 2c 20 42 2e 20 48 69 |ew windo|w, B. Hi|
|000026e0| 64 65 20 77 69 6e 64 6f | 77 20 42 20 61 6e 64 20 |de windo|w B and |
|000026f0| 64 69 73 70 6f 73 65 20 | 6f 66 0d 77 69 6e 64 6f |dispose |of.windo|
|00002700| 77 20 41 2e 20 4e 6f 77 | 20 63 72 65 61 74 65 20 |w A. Now| create |
|00002710| 61 20 6e 65 77 20 77 69 | 6e 64 6f 77 20 43 2e 20 |a new wi|ndow C. |
|00002720| 49 74 20 64 6f 65 73 20 | 4e 4f 54 20 67 65 74 20 |It does |NOT get |
|00002730| 68 69 6c 69 74 65 64 2c | 20 62 75 74 20 69 74 20 |hilited,| but it |
|00002740| 49 53 0d 61 63 74 69 76 | 65 2e 20 49 20 62 65 6c |IS.activ|e. I bel|
|00002750| 69 65 76 65 20 74 68 69 | 73 20 69 73 20 61 20 62 |ieve thi|s is a b|
|00002760| 75 67 20 69 6e 20 53 68 | 6f 77 52 65 66 65 72 65 |ug in Sh|owRefere|
|00002770| 6e 63 65 64 57 69 6e 64 | 6f 77 20 77 68 65 72 65 |ncedWind|ow where|
|00002780| 20 69 74 20 64 6f 65 73 | 0d 74 68 65 20 66 6f 6c | it does|.the fol|
|00002790| 6c 6f 77 69 6e 67 20 63 | 68 65 63 6b 3a 0d 0d 20 |lowing c|heck:.. |
|000027a0| 20 20 20 77 69 6e 64 6f | 77 42 65 68 69 6e 64 20 | windo|wBehind |
|000027b0| 3d 20 47 65 74 4e 65 78 | 74 57 69 6e 64 6f 77 28 |= GetNex|tWindow(|
|000027c0| 77 69 6e 64 6f 77 54 6f | 53 68 6f 77 29 3b 0d 20 |windowTo|Show);. |
|000027d0| 20 20 20 69 66 20 28 77 | 69 6e 64 6f 77 42 65 68 | if (w|indowBeh|
|000027e0| 69 6e 64 20 3d 3d 20 46 | 72 6f 6e 74 4e 6f 6e 46 |ind == F|rontNonF|
|000027f0| 6c 6f 61 74 69 6e 67 57 | 69 6e 64 6f 77 28 29 29 |loatingW|indow())|
|00002800| 20 7b 0d 09 69 66 20 28 | 77 69 6e 64 6f 77 42 65 | {..if (|windowBe|
|00002810| 68 69 6e 64 20 21 3d 20 | 6e 69 6c 29 0d 09 44 65 |hind != |nil)..De|
|00002820| 61 63 74 69 76 61 74 65 | 57 69 6e 64 6f 77 28 77 |activate|Window(w|
|00002830| 69 6e 64 6f 77 42 65 68 | 69 6e 64 29 3b 0d 0d 09 |indowBeh|ind);...|
|00002840| 20 2f 2f 20 53 65 74 20 | 74 68 65 20 68 69 67 68 | // Set |the high|
|00002850| 6c 69 67 68 74 20 73 74 | 61 74 65 20 53 65 74 0d |light st|ate Set.|
|00002860| 09 57 69 6e 64 6f 77 48 | 69 6c 69 74 65 28 77 69 |.WindowH|ilite(wi|
|00002870| 6e 64 6f 77 54 6f 53 68 | 6f 77 2c 20 74 72 75 65 |ndowToSh|ow, true|
|00002880| 29 3b 0d 20 20 20 20 7d | 0d 0d 74 68 69 73 20 77 |);. }|..this w|
|00002890| 69 6c 6c 20 6f 6e 6c 79 | 20 73 65 74 20 77 69 6e |ill only| set win|
|000028a0| 64 6f 77 54 6f 53 68 6f | 77 27 73 20 68 69 6c 69 |dowToSho|w's hili|
|000028b0| 74 65 20 73 74 61 74 65 | 20 74 6f 20 74 72 75 65 |te state| to true|
|000028c0| 20 69 66 20 74 68 65 20 | 77 69 6e 64 6f 77 0d 69 | if the |window.i|
|000028d0| 6d 6d 65 64 69 61 74 65 | 6c 79 20 61 66 74 65 72 |mmediate|ly after|
|000028e0| 20 74 68 65 20 6f 6e 65 | 20 62 65 69 6e 67 20 73 | the one| being s|
|000028f0| 68 6f 77 6e 20 69 73 20 | 74 68 65 20 66 72 6f 6e |hown is |the fron|
|00002900| 74 6d 6f 73 74 20 56 49 | 53 49 42 4c 45 0d 6e 6f |tmost VI|SIBLE.no|
|00002910| 6e 2d 66 6c 6f 61 74 69 | 6e 67 20 77 69 6e 64 6f |n-floati|ng windo|
|00002920| 77 2e 0d 0d 2a 20 53 65 | 63 6f 6e 64 20 62 75 67 |w...* Se|cond bug|
|00002930| 3a 0d 4f 70 65 6e 20 61 | 20 6e 65 77 20 77 69 6e |:.Open a| new win|
|00002940| 64 6f 77 2c 20 41 2e 20 | 4f 70 65 6e 20 61 20 6e |dow, A. |Open a n|
|00002950| 65 77 20 77 69 6e 64 6f | 77 2c 20 42 2e 20 4f 70 |ew windo|w, B. Op|
|00002960| 65 6e 20 61 20 6e 65 77 | 20 77 69 6e 64 6f 77 2c |en a new| window,|
|00002970| 20 43 20 61 6e 64 0d 68 | 69 64 65 20 77 69 6e 64 | C and.h|ide wind|
|00002980| 6f 77 20 42 2e 20 4e 6f | 77 20 73 68 6f 77 20 77 |ow B. No|w show w|
|00002990| 69 6e 64 6f 77 20 42 20 | 61 6e 64 20 68 69 64 65 |indow B |and hide|
|000029a0| 20 77 69 6e 64 6f 77 20 | 43 2e 20 4e 6f 77 20 68 | window |C. Now h|
|000029b0| 69 64 65 20 77 69 6e 64 | 6f 77 0d 42 2c 20 6c 65 |ide wind|ow.B, le|
|000029c0| 61 76 69 6e 67 20 6f 6e | 6c 79 20 77 69 6e 64 6f |aving on|ly windo|
|000029d0| 77 20 41 20 76 69 73 69 | 62 6c 65 2e 20 57 69 6e |w A visi|ble. Win|
|000029e0| 64 6f 77 20 41 20 69 73 | 20 4e 4f 54 20 61 63 74 |dow A is| NOT act|
|000029f0| 69 76 65 20 61 6e 64 20 | 69 73 20 4e 4f 54 0d 68 |ive and |is NOT.h|
|00002a00| 69 6c 69 74 65 64 2e 0d | 0d 43 68 65 63 6b 69 6e |ilited..|.Checkin|
|00002a10| 67 20 57 69 6e 64 6f 77 | 4c 69 73 74 20 73 68 6f |g Window|List sho|
|00002a20| 77 73 20 74 68 65 20 6f | 72 64 65 72 20 43 2d 3e |ws the o|rder C->|
|00002a30| 42 2d 3e 41 2d 3e 30 2c | 20 61 6e 64 20 74 68 61 |B->A->0,| and tha|
|00002a40| 74 20 77 69 6e 64 6f 77 | 20 43 20 69 73 0d 61 63 |t window| C is.ac|
|00002a50| 74 69 76 65 20 61 6e 64 | 20 68 69 6c 69 74 65 64 |tive and| hilited|
|00002a60| 2c 20 65 76 65 6e 20 74 | 68 6f 75 67 68 20 69 74 |, even t|hough it|
|00002a70| 20 69 73 20 6e 6f 74 20 | 76 69 73 69 62 6c 65 2e | is not |visible.|
|00002a80| 20 28 54 68 69 73 20 73 | 61 6d 65 20 73 65 71 75 | (This s|ame sequ|
|00002a90| 65 6e 63 65 0d 75 73 69 | 6e 67 20 54 6f 6f 6c 42 |ence.usi|ng ToolB|
|00002aa0| 6f 78 20 72 6f 75 74 69 | 6e 65 73 20 68 61 73 20 |ox routi|nes has |
|00002ab0| 57 69 6e 64 6f 77 4c 69 | 73 74 20 6f 72 64 65 72 |WindowLi|st order|
|00002ac0| 20 41 2d 3e 42 2d 3e 43 | 2d 3e 30 29 2e 20 49 20 | A->B->C|->0). I |
|00002ad0| 62 65 6c 69 65 76 65 20 | 74 68 69 73 0d 69 73 20 |believe |this.is |
|00002ae0| 61 20 62 75 67 20 69 6e | 20 48 69 64 65 52 65 66 |a bug in| HideRef|
|00002af0| 65 72 65 6e 63 65 64 57 | 69 6e 64 6f 77 20 77 68 |erencedW|indow wh|
|00002b00| 65 72 65 20 69 74 20 73 | 61 79 73 3a 0d 0d 20 20 |ere it s|ays:.. |
|00002b10| 20 20 69 66 20 28 77 69 | 6e 64 6f 77 54 6f 48 69 | if (wi|ndowToHi|
|00002b20| 64 65 20 3d 3d 20 66 72 | 6f 6e 74 4e 6f 6e 46 6c |de == fr|ontNonFl|
|00002b30| 6f 61 74 65 72 29 20 7b | 0d 09 77 69 6e 64 6f 77 |oater) {|..window|
|00002b40| 42 65 68 69 6e 64 20 3d | 20 47 65 74 4e 65 78 74 |Behind =| GetNext|
|00002b50| 57 69 6e 64 6f 77 28 77 | 69 6e 64 6f 77 54 6f 48 |Window(w|indowToH|
|00002b60| 69 64 65 29 3b 0d 09 69 | 66 20 28 77 69 6e 64 6f |ide);..i|f (windo|
|00002b70| 77 42 65 68 69 6e 64 20 | 21 3d 20 6e 69 6c 29 20 |wBehind |!= nil) |
|00002b80| 7b 0d 09 20 20 20 20 53 | 65 74 4e 65 78 74 57 69 |{.. S|etNextWi|
|00002b90| 6e 64 6f 77 28 77 69 6e | 64 6f 77 54 6f 48 69 64 |ndow(win|dowToHid|
|00002ba0| 65 2c 20 47 65 74 4e 65 | 78 74 57 69 6e 64 6f 77 |e, GetNe|xtWindow|
|00002bb0| 28 77 69 6e 64 6f 77 42 | 65 68 69 6e 64 29 29 3b |(windowB|ehind));|
|00002bc0| 0d 09 20 20 20 20 53 65 | 74 4e 65 78 74 57 69 6e |.. Se|tNextWin|
|00002bd0| 64 6f 77 28 77 69 6e 64 | 6f 77 42 65 68 69 6e 64 |dow(wind|owBehind|
|00002be0| 2c 20 77 69 6e 64 6f 77 | 54 6f 48 69 64 65 29 3b |, window|ToHide);|
|00002bf0| 0d 09 20 20 20 20 2e 2e | 2e 0d 0d 54 68 69 73 20 |.. ..|...This |
|00002c00| 61 73 73 75 6d 65 73 20 | 74 68 61 74 20 27 77 69 |assumes |that 'wi|
|00002c10| 6e 64 6f 77 42 65 68 69 | 6e 64 27 20 28 74 68 65 |ndowBehi|nd' (the|
|00002c20| 20 6e 65 78 74 20 77 69 | 6e 64 6f 77 20 69 6e 20 | next wi|ndow in |
|00002c30| 74 68 65 20 77 69 6e 64 | 6f 77 20 6c 69 73 74 0d |the wind|ow list.|
|00002c40| 61 66 74 65 72 20 74 68 | 65 20 77 69 6e 64 6f 77 |after th|e window|
|00002c50| 20 62 65 69 6e 67 20 68 | 69 64 64 65 6e 29 20 69 | being h|idden) i|
|00002c60| 73 20 76 69 73 69 62 6c | 65 2e 0d 0d 49 74 20 77 |s visibl|e...It w|
|00002c70| 6f 75 6c 64 20 62 65 20 | 6e 69 63 65 20 69 66 20 |ould be |nice if |
|00002c80| 74 68 65 73 65 20 72 6f | 75 74 69 6e 65 73 20 65 |these ro|utines e|
|00002c90| 6d 75 6c 61 74 65 64 20 | 74 68 65 20 62 65 68 61 |mulated |the beha|
|00002ca0| 76 69 6f 72 20 6f 66 20 | 74 68 65 20 73 79 73 74 |vior of |the syst|
|00002cb0| 65 6d 0d 53 68 6f 77 57 | 69 6e 64 6f 77 2f 48 69 |em.ShowW|indow/Hi|
|00002cc0| 64 65 57 69 6e 64 6f 77 | 3b 20 69 66 20 61 6e 79 |deWindow|; if any|
|00002cd0| 6f 6e 65 20 68 61 73 20 | 61 6c 72 65 61 64 79 20 |one has |already |
|00002ce0| 66 69 78 65 64 20 74 68 | 65 73 65 20 62 75 67 73 |fixed th|ese bugs|
|00002cf0| 20 6f 72 20 68 61 73 0d | 69 64 65 61 73 20 6f 6e | or has.|ideas on|
|00002d00| 20 68 6f 77 20 74 6f 20 | 66 69 78 20 74 68 65 6d | how to |fix them|
|00002d10| 20 73 6f 20 74 68 65 79 | 20 61 63 74 20 6c 69 6b | so they| act lik|
|00002d20| 65 20 74 68 65 20 54 6f | 6f 6c 42 6f 78 2c 20 70 |e the To|olBox, p|
|00002d30| 6c 65 61 73 65 20 6c 65 | 74 20 6d 65 0d 6b 6e 6f |lease le|t me.kno|
|00002d40| 77 2e 20 49 27 6c 6c 20 | 70 6f 73 74 20 74 68 65 |w. I'll |post the|
|00002d50| 20 22 66 69 78 65 73 22 | 20 69 66 2f 77 68 65 6e | "fixes"| if/when|
|00002d60| 20 49 20 66 69 67 75 72 | 65 20 74 68 65 6d 20 6f | I figur|e them o|
|00002d70| 75 74 2e 0d 0d 2d 2d 20 | 0d 45 64 64 79 20 4a 2e |ut...-- |.Eddy J.|
|00002d80| 20 47 75 72 6e 65 79 20 | 4e 38 46 50 57 20 20 20 | Gurney |N8FPW |
|00002d90| 48 65 77 6c 65 74 74 2d | 50 61 63 6b 61 72 64 20 |Hewlett-|Packard |
|00002da0| 43 6f 6d 70 61 6e 79 2c | 20 56 61 6e 63 6f 75 76 |Company,| Vancouv|
|00002db0| 65 72 20 28 55 53 41 21 | 29 20 44 69 76 69 73 69 |er (USA!|) Divisi|
|00002dc0| 6f 6e 0d 65 67 75 72 6e | 65 79 40 76 63 64 2e 68 |on.egurn|ey@vcd.h|
|00002dd0| 70 2e 63 6f 6d 20 20 20 | 20 20 20 20 20 20 20 20 |p.com | |
|00002de0| 20 20 20 20 20 20 20 20 | 20 20 20 20 23 69 6e 63 | | #inc|
|00002df0| 6c 75 64 65 20 3c 73 74 | 61 6e 64 61 72 64 2d 64 |lude <st|andard-d|
|00002e00| 69 73 63 6c 61 69 6d 65 | 72 2e 68 3e 0d 22 46 61 |isclaime|r.h>."Fa|
|00002e10| 69 6c 75 72 65 73 20 61 | 72 65 20 64 69 76 69 64 |ilures a|re divid|
|00002e20| 65 64 20 69 6e 74 6f 20 | 74 77 6f 20 63 6c 61 73 |ed into |two clas|
|00002e30| 73 65 73 2d 2d 20 74 68 | 6f 73 65 20 77 68 6f 20 |ses-- th|ose who |
|00002e40| 74 68 6f 75 67 68 74 20 | 61 6e 64 20 6e 65 76 65 |thought |and neve|
|00002e50| 72 20 64 69 64 2c 0d 20 | 20 20 20 20 20 61 6e 64 |r did,. | and|
|00002e60| 20 74 68 6f 73 65 20 77 | 68 6f 20 64 69 64 20 61 | those w|ho did a|
|00002e70| 6e 64 20 6e 65 76 65 72 | 20 74 68 6f 75 67 68 74 |nd never| thought|
|00002e80| 2e 22 20 20 20 20 20 4a | 6f 68 6e 20 43 68 61 72 |." J|ohn Char|
|00002e90| 6c 65 73 20 53 61 6c 61 | 6b 0d 0d 2b 2b 2b 2b 2b |les Sala|k..+++++|
|00002ea0| 2b 2b 2b 2b 2b 2b 2b 2b | 2b 2b 2b 2b 2b 2b 2b 2b |++++++++|++++++++|
|00002eb0| 2b 2b 2b 2b 2b 2b 0d 0d | 3e 46 72 6f 6d 20 54 68 |++++++..|>From Th|
|00002ec0| 6f 6d 61 73 20 52 65 65 | 64 20 3c 72 65 65 64 40 |omas Ree|d <reed@|
|00002ed0| 6d 65 64 69 63 69 6e 65 | 2e 77 75 73 74 6c 2e 65 |medicine|.wustl.e|
|00002ee0| 64 75 3e 0d 44 61 74 65 | 3a 20 33 31 20 4d 61 79 |du>.Date|: 31 May|
|00002ef0| 20 31 39 39 34 20 31 34 | 3a 31 34 3a 34 36 20 47 | 1994 14|:14:46 G|
|00002f00| 4d 54 0d 4f 72 67 61 6e | 69 7a 61 74 69 6f 6e 3a |MT.Organ|ization:|
|00002f10| 20 57 61 73 68 69 6e 67 | 74 6f 6e 20 55 6e 69 76 | Washing|ton Univ|
|00002f20| 65 72 73 69 74 79 0d 0d | 49 6e 20 61 72 74 69 63 |ersity..|In artic|
|00002f30| 6c 65 20 3c 43 71 4a 39 | 4b 78 2e 33 7a 42 40 76 |le <CqJ9|Kx.3zB@v|
|00002f40| 63 64 2e 68 70 2e 63 6f | 6d 3e 20 45 64 64 79 20 |cd.hp.co|m> Eddy |
|00002f50| 4a 2e 20 47 75 72 6e 65 | 79 2c 20 65 67 75 72 6e |J. Gurne|y, egurn|
|00002f60| 65 79 40 76 63 64 2e 68 | 70 2e 63 6f 6d 0d 77 72 |ey@vcd.h|p.com.wr|
|00002f70| 69 74 65 73 3a 0d 3e 49 | 20 72 65 63 65 6e 74 6c |ites:.>I| recentl|
|00002f80| 79 20 69 6e 63 6f 72 70 | 6f 72 61 74 65 64 20 44 |y incorp|orated D|
|00002f90| 65 61 6e 20 59 75 27 73 | 20 22 57 69 6e 64 6f 77 |ean Yu's| "Window|
|00002fa0| 45 78 74 65 6e 73 69 6f | 6e 73 2e 63 22 20 6c 69 |Extensio|ns.c" li|
|00002fb0| 62 72 61 72 79 20 28 61 | 72 74 69 63 6c 65 0d 3e |brary (a|rticle.>|
|00002fc0| 69 6e 20 27 64 65 76 65 | 6c 6f 70 27 20 69 73 73 |in 'deve|lop' iss|
|00002fd0| 75 65 20 31 35 2c 20 22 | 46 6c 6f 61 74 69 6e 67 |ue 15, "|Floating|
|00002fe0| 20 57 69 6e 64 6f 77 73 | 3a 20 4b 65 65 70 69 6e | Windows|: Keepin|
|00002ff0| 67 20 41 66 6c 6f 61 74 | 20 69 6e 20 74 68 65 0d |g Afloat| in the.|
|00003000| 3e 57 69 6e 64 6f 77 20 | 4d 61 6e 61 67 65 72 22 |>Window |Manager"|
|00003010| 2c 20 63 6f 64 65 20 6f | 66 66 20 69 73 73 75 65 |, code o|ff issue|
|00003020| 20 31 36 20 6f 72 20 6e | 65 77 65 72 20 64 6f 20 | 16 or n|ewer do |
|00003030| 74 6f 20 73 6f 6d 65 20 | 62 75 67 20 66 69 78 65 |to some |bug fixe|
|00003040| 73 29 0d 3e 69 6e 74 6f | 20 6d 79 20 61 70 70 6c |s).>into| my appl|
|00003050| 69 63 61 74 69 6f 6e 20 | 74 6f 20 67 69 76 65 20 |ication |to give |
|00003060| 69 74 20 66 6c 6f 61 74 | 69 6e 67 20 77 69 6e 64 |it float|ing wind|
|00003070| 6f 77 20 61 62 69 6c 69 | 74 79 2e 0d 0d 4f 6e 20 |ow abili|ty...On |
|00003080| 61 6e 20 61 73 69 64 65 | 2c 20 64 6f 65 73 20 61 |an aside|, does a|
|00003090| 6e 79 6f 6e 65 20 6b 6e | 6f 77 20 69 66 20 79 6f |nyone kn|ow if yo|
|000030a0| 75 20 63 61 6e 20 75 73 | 65 20 74 68 69 73 20 63 |u can us|e this c|
|000030b0| 6f 64 65 20 74 6f 20 63 | 72 65 61 74 65 20 61 0d |ode to c|reate a.|
|000030c0| 66 6c 6f 61 74 69 6e 67 | 20 77 69 6e 64 6f 77 20 |floating| window |
|000030d0| 74 68 61 74 20 77 69 6c | 6c 20 66 6c 6f 61 74 20 |that wil|l float |
|000030e0| 6f 76 65 72 20 41 4c 4c | 20 77 69 6e 64 6f 77 73 |over ALL| windows|
|000030f0| 20 61 74 20 41 4c 4c 20 | 74 69 6d 65 73 3f 20 20 | at ALL |times? |
|00003100| 69 2e 65 2e 20 2d 0d 65 | 76 65 6e 20 77 68 65 6e |i.e. -.e|ven when|
|00003110| 20 6f 74 68 65 72 20 61 | 70 70 73 20 61 72 65 20 | other a|pps are |
|00003120| 69 6e 20 74 68 65 20 66 | 72 6f 6e 74 2c 20 74 68 |in the f|ront, th|
|00003130| 65 20 77 69 6e 64 6f 77 | 20 77 69 6c 6c 20 66 6c |e window| will fl|
|00003140| 6f 61 74 20 6f 76 65 72 | 20 41 4c 4c 0d 77 69 6e |oat over| ALL.win|
|00003150| 64 6f 77 73 3f 0d 0d 49 | 20 6b 6e 6f 77 20 74 68 |dows?..I| know th|
|00003160| 69 73 20 69 73 20 70 6f | 73 73 69 62 6c 65 20 75 |is is po|ssible u|
|00003170| 73 69 6e 67 20 73 6f 6d | 65 20 6b 69 6e 64 20 6f |sing som|e kind o|
|00003180| 66 20 63 61 6c 6c 73 20 | 66 72 6f 6d 20 74 68 65 |f calls |from the|
|00003190| 20 6e 65 77 20 49 4d 3a | 20 54 65 78 74 2c 0d 62 | new IM:| Text,.b|
|000031a0| 75 74 20 61 73 20 49 20 | 6f 6e 6c 79 20 68 61 76 |ut as I |only hav|
|000031b0| 65 20 74 68 65 20 6f 6c | 64 20 49 4d 73 2c 20 49 |e the ol|d IMs, I|
|000031c0| 20 63 61 6e 27 74 20 75 | 73 65 20 74 68 69 73 20 | can't u|se this |
|000031d0| 74 6f 6f 20 65 61 73 69 | 6c 79 2e 20 20 49 20 61 |too easi|ly. I a|
|000031e0| 6c 73 6f 0d 64 6f 6e 27 | 74 20 77 61 6e 74 20 74 |lso.don'|t want t|
|000031f0| 6f 20 6c 69 6d 69 74 20 | 74 68 69 73 20 63 61 70 |o limit |this cap|
|00003200| 61 62 69 6c 69 74 79 20 | 74 6f 20 53 79 73 20 37 |ability |to Sys 7|
|00003210| 2e 31 20 6f 6e 6c 79 2e | 20 20 49 27 64 20 6c 69 |.1 only.| I'd li|
|00003220| 6b 65 20 69 74 20 74 6f | 20 77 6f 72 6b 0d 69 6e |ke it to| work.in|
|00003230| 20 70 72 65 76 69 6f 75 | 73 20 76 65 72 73 69 6f | previou|s versio|
|00003240| 6e 73 20 6f 66 20 53 79 | 73 20 37 2e 0d 0d 54 68 |ns of Sy|s 7...Th|
|00003250| 61 6e 6b 73 21 0d 0d 2d | 54 68 6f 6d 61 73 0d 3d |anks!..-|Thomas.=|
|00003260| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00003270| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00003280| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00003290| 3d 3d 3d 3d 0d 54 68 6f | 6d 61 73 20 52 65 65 64 |====.Tho|mas Reed|
|000032a0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000032b0| 20 20 20 20 57 61 73 68 | 69 6e 67 74 6f 6e 20 55 | Wash|ington U|
|000032c0| 6e 69 76 65 72 73 69 74 | 79 0d 52 65 65 64 40 74 |niversit|y.Reed@t|
|000032d0| 65 6c 65 73 70 68 65 72 | 65 2e 77 75 73 74 6c 2e |elespher|e.wustl.|
|000032e0| 65 64 75 20 20 20 20 20 | 20 20 20 20 20 4d 65 64 |edu | Med|
|000032f0| 69 63 61 6c 20 53 63 68 | 6f 6f 6c 0d 28 61 6c 73 |ical Sch|ool.(als|
|00003300| 6f 3a 20 20 52 65 65 64 | 40 6d 65 64 69 63 69 6e |o: Reed|@medicin|
|00003310| 65 2e 77 75 73 74 6c 2e | 65 64 75 29 0d 2d 20 2d |e.wustl.|edu).- -|
|00003320| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00003330| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00003340| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00003350| 2d 2d 0d 43 6c 6f 74 68 | 65 73 20 6d 61 6b 65 20 |--.Cloth|es make |
|00003360| 74 68 65 20 6d 61 6e 2e | 20 20 4e 61 6b 65 64 20 |the man.| Naked |
|00003370| 70 65 6f 70 6c 65 20 68 | 61 76 65 20 6c 69 74 74 |people h|ave litt|
|00003380| 6c 65 20 6f 72 20 6e 6f | 0d 69 6e 66 6c 75 65 6e |le or no|.influen|
|00003390| 63 65 20 6f 6e 20 73 6f | 63 69 65 74 79 2e 20 20 |ce on so|ciety. |
|000033a0| 2d 2d 20 4d 61 72 6b 20 | 54 77 61 69 6e 0d 3d 3d |-- Mark |Twain.==|
|000033b0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|000033c0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|000033d0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|000033e0| 3d 3d 3d 0d 0d 4f 70 69 | 6e 69 6f 6e 73 20 70 6f |===..Opi|nions po|
|000033f0| 73 74 65 64 20 61 72 65 | 20 6e 6f 74 20 74 68 65 |sted are| not the|
|00003400| 20 6f 70 69 6e 69 6f 6e | 73 20 6f 66 20 57 61 73 | opinion|s of Was|
|00003410| 68 2e 20 55 2e 0d 0d 2b | 2b 2b 2b 2b 2b 2b 2b 2b |h. U...+|++++++++|
|00003420| 2b 2b 2b 2b 2b 2b 2b 2b | 2b 2b 2b 2b 2b 2b 2b 2b |++++++++|++++++++|
|00003430| 2b 2b 0d 0d 3e 46 72 6f | 6d 20 4a 65 6e 73 20 41 |++..>Fro|m Jens A|
|00003440| 6c 66 6b 65 20 3c 6a 65 | 6e 73 5f 61 6c 66 6b 65 |lfke <je|ns_alfke|
|00003450| 40 70 6f 77 65 72 74 61 | 6c 6b 2e 61 70 70 6c 65 |@powerta|lk.apple|
|00003460| 2e 63 6f 6d 3e 0d 44 61 | 74 65 3a 20 54 75 65 2c |.com>.Da|te: Tue,|
|00003470| 20 33 31 20 4d 61 79 20 | 31 39 39 34 20 31 39 3a | 31 May |1994 19:|
|00003480| 31 37 3a 33 35 20 47 4d | 54 0d 4f 72 67 61 6e 69 |17:35 GM|T.Organi|
|00003490| 7a 61 74 69 6f 6e 3a 20 | 41 70 70 6c 65 20 43 6f |zation: |Apple Co|
|000034a0| 6d 70 75 74 65 72 0d 0d | 54 68 6f 6d 61 73 20 52 |mputer..|Thomas R|
|000034b0| 65 65 64 2c 20 72 65 65 | 64 40 6d 65 64 69 63 69 |eed, ree|d@medici|
|000034c0| 6e 65 2e 77 75 73 74 6c | 2e 65 64 75 20 77 72 69 |ne.wustl|.edu wri|
|000034d0| 74 65 73 3a 0d 3e 20 4f | 6e 20 61 6e 20 61 73 69 |tes:.> O|n an asi|
|000034e0| 64 65 2c 20 64 6f 65 73 | 20 61 6e 79 6f 6e 65 20 |de, does| anyone |
|000034f0| 6b 6e 6f 77 20 69 66 20 | 79 6f 75 20 63 61 6e 20 |know if |you can |
|00003500| 75 73 65 20 74 68 69 73 | 20 63 6f 64 65 20 74 6f |use this| code to|
|00003510| 20 63 72 65 61 74 65 20 | 61 0d 3e 20 66 6c 6f 61 | create |a.> floa|
|00003520| 74 69 6e 67 20 77 69 6e | 64 6f 77 20 74 68 61 74 |ting win|dow that|
|00003530| 20 77 69 6c 6c 20 66 6c | 6f 61 74 20 6f 76 65 72 | will fl|oat over|
|00003540| 20 41 4c 4c 20 77 69 6e | 64 6f 77 73 20 61 74 20 | ALL win|dows at |
|00003550| 41 4c 4c 20 74 69 6d 65 | 73 3f 20 20 69 2e 65 2e |ALL time|s? i.e.|
|00003560| 20 2d 0d 3e 20 65 76 65 | 6e 20 77 68 65 6e 20 6f | -.> eve|n when o|
|00003570| 74 68 65 72 20 61 70 70 | 73 20 61 72 65 20 69 6e |ther app|s are in|
|00003580| 20 74 68 65 20 66 72 6f | 6e 74 2c 20 74 68 65 20 | the fro|nt, the |
|00003590| 77 69 6e 64 6f 77 20 77 | 69 6c 6c 20 66 6c 6f 61 |window w|ill floa|
|000035a0| 74 20 6f 76 65 72 20 41 | 4c 4c 0d 3e 20 77 69 6e |t over A|LL.> win|
|000035b0| 64 6f 77 73 3f 0d 0d 4e | 6f 2e 20 54 68 65 20 6f |dows?..N|o. The o|
|000035c0| 6e 6c 79 20 77 61 79 73 | 20 74 6f 20 64 6f 20 74 |nly ways| to do t|
|000035d0| 68 69 73 20 61 72 65 3a | 0d 28 41 29 20 42 75 69 |his are:|.(A) Bui|
|000035e0| 6c 64 20 73 6f 6d 65 20 | 54 53 4d 20 28 54 65 78 |ld some |TSM (Tex|
|000035f0| 74 20 53 65 72 76 69 63 | 65 73 20 4d 61 6e 61 67 |t Servic|es Manag|
|00003600| 65 72 29 20 27 73 65 72 | 76 69 63 65 27 20 77 69 |er) 'ser|vice' wi|
|00003610| 6e 64 6f 77 73 2c 20 77 | 68 69 63 68 20 61 6c 77 |ndows, w|hich alw|
|00003620| 61 79 73 0d 66 6c 6f 61 | 74 2e 20 59 6f 75 20 6e |ays.floa|t. You n|
|00003630| 65 65 64 20 53 79 73 74 | 65 6d 20 37 2e 31 20 6f |eed Syst|em 7.1 o|
|00003640| 72 20 6c 61 74 65 72 20 | 66 6f 72 20 74 68 69 73 |r later |for this|
|00003650| 2c 20 73 69 6e 63 65 20 | 54 53 4d 20 69 73 20 70 |, since |TSM is p|
|00003660| 61 72 74 20 6f 66 0d 57 | 6f 72 6c 64 53 63 72 69 |art of.W|orldScri|
|00003670| 70 74 2e 0d 28 42 29 20 | 55 73 65 20 74 68 65 20 |pt..(B) |Use the |
|00003680| 4c 61 79 65 72 20 4d 61 | 6e 61 67 65 72 2c 20 77 |Layer Ma|nager, w|
|00003690| 68 69 63 68 20 64 6f 65 | 73 20 65 78 69 73 74 2c |hich doe|s exist,|
|000036a0| 20 62 75 74 20 77 61 73 | 20 6e 65 76 65 72 20 6d | but was| never m|
|000036b0| 61 64 65 20 70 75 62 6c | 69 63 2c 20 77 61 73 0d |ade publ|ic, was.|
|000036c0| 6e 65 76 65 72 20 65 78 | 74 65 6e 73 69 76 65 6c |never ex|tensivel|
|000036d0| 79 20 74 65 73 74 65 64 | 2c 20 61 6e 64 20 77 68 |y tested|, and wh|
|000036e0| 69 63 68 20 74 68 65 20 | 54 6f 6f 6c 62 6f 78 20 |ich the |Toolbox |
|000036f0| 70 65 6f 70 6c 65 20 73 | 77 65 61 72 20 77 69 6c |people s|wear wil|
|00003700| 6c 20 66 69 6e 61 6c 6c | 79 0d 64 69 73 61 70 70 |l finall|y.disapp|
|00003710| 65 61 72 20 6e 65 78 74 | 20 79 65 61 72 20 77 69 |ear next| year wi|
|00003720| 74 68 20 74 68 65 20 43 | 6f 70 6c 61 6e 64 20 73 |th the C|opland s|
|00003730| 79 73 74 65 6d 20 72 65 | 6c 65 61 73 65 2e 20 41 |ystem re|lease. A|
|00003740| 20 66 65 77 20 33 72 64 | 20 70 61 72 74 69 65 73 | few 3rd| parties|
|00003750| 20 64 69 64 0d 6d 61 6e | 61 67 65 72 20 74 6f 20 | did.man|ager to |
|00003760| 72 65 76 65 72 73 65 20 | 65 6e 67 69 6e 65 65 72 |reverse |engineer|
|00003770| 20 74 68 65 20 41 50 49 | 2c 20 62 75 74 20 74 68 | the API|, but th|
|00003780| 65 79 27 6c 6c 20 64 65 | 66 69 6e 69 74 65 6c 79 |ey'll de|finitely|
|00003790| 20 68 61 76 65 20 73 6f | 6d 65 20 77 6f 72 6b 20 | have so|me work |
|000037a0| 74 6f 0d 64 6f 20 77 68 | 65 6e 20 43 6f 70 6c 61 |to.do wh|en Copla|
|000037b0| 6e 64 20 73 68 69 70 73 | 2e 0d 28 43 29 20 50 75 |nd ships|..(C) Pu|
|000037c0| 6e 63 68 20 61 20 68 6f | 6c 65 20 6f 75 74 20 6f |nch a ho|le out o|
|000037d0| 66 20 74 68 65 20 47 72 | 61 79 52 67 6e 20 61 6e |f the Gr|ayRgn an|
|000037e0| 64 20 70 61 74 63 68 20 | 74 68 65 20 57 69 6e 64 |d patch |the Wind|
|000037f0| 6f 77 20 4d 61 6e 61 67 | 65 72 20 74 6f 20 64 72 |ow Manag|er to dr|
|00003800| 61 77 20 79 6f 75 72 0d | 73 74 75 66 66 20 69 6e |aw your.|stuff in|
|00003810| 20 74 68 65 20 68 6f 6c | 65 20 77 68 65 6e 20 69 | the hol|e when i|
|00003820| 74 20 6e 65 65 64 73 20 | 75 70 64 61 74 69 6e 67 |t needs |updating|
|00003830| 2e 20 41 6c 73 6f 20 68 | 6f 6f 6b 20 69 6e 74 6f |. Also h|ook into|
|00003840| 20 74 68 65 20 45 76 65 | 6e 74 20 4d 61 6e 61 67 | the Eve|nt Manag|
|00003850| 65 72 20 74 6f 0d 67 72 | 61 62 20 6d 6f 75 73 65 |er to.gr|ab mouse|
|00003860| 20 63 6c 69 63 6b 73 20 | 69 6e 20 74 68 61 74 20 | clicks |in that |
|00003870| 70 61 72 74 20 6f 66 20 | 74 68 65 20 73 63 72 65 |part of |the scre|
|00003880| 65 6e 2e 20 4e 6f 74 65 | 20 74 68 61 74 20 77 68 |en. Note| that wh|
|00003890| 61 74 20 79 6f 75 20 68 | 61 76 65 20 69 73 20 6e |at you h|ave is n|
|000038a0| 6f 74 0d 61 20 77 69 6e | 64 6f 77 20 61 74 20 61 |ot.a win|dow at a|
|000038b0| 6c 6c 2c 20 6a 75 73 74 | 20 61 20 68 6f 6c 65 20 |ll, just| a hole |
|000038c0| 69 6e 20 74 68 65 20 73 | 63 72 65 65 6e 2c 20 73 |in the s|creen, s|
|000038d0| 6f 20 79 6f 75 20 61 72 | 65 20 72 65 73 70 6f 6e |o you ar|e respon|
|000038e0| 73 69 62 6c 65 20 66 6f | 72 0d 64 72 61 77 69 6e |sible fo|r.drawin|
|000038f0| 67 20 74 68 65 20 74 69 | 74 6c 65 20 62 61 72 20 |g the ti|tle bar |
|00003900| 61 6e 64 20 63 6f 6e 74 | 72 6f 6c 73 20 79 6f 75 |and cont|rols you|
|00003910| 72 73 65 6c 66 2e 20 54 | 68 69 73 20 69 73 20 52 |rself. T|his is R|
|00003920| 45 41 4c 4c 59 20 73 6b | 61 6e 6b 79 20 61 6e 64 |EALLY sk|anky and|
|00003930| 20 52 45 41 4c 4c 59 0d | 63 6f 6d 70 6c 69 63 61 | REALLY.|complica|
|00003940| 74 65 64 2c 20 62 75 74 | 20 68 61 73 20 62 65 65 |ted, but| has bee|
|00003950| 6e 20 64 6f 6e 65 20 62 | 79 20 73 65 76 65 72 61 |n done b|y severa|
|00003960| 6c 20 73 68 69 70 70 69 | 6e 67 20 65 78 74 65 6e |l shippi|ng exten|
|00003970| 73 69 6f 6e 73 2e 0d 0d | 4e 65 65 64 6c 65 73 73 |sions...|Needless|
|00003980| 20 74 6f 20 73 61 79 20 | 49 27 64 20 72 65 63 6f | to say |I'd reco|
|00003990| 6d 6d 65 6e 64 20 28 41 | 29 2c 20 65 76 65 6e 20 |mmend (A|), even |
|000039a0| 74 68 6f 75 67 68 20 49 | 20 68 65 61 72 20 74 68 |though I| hear th|
|000039b0| 65 72 65 20 61 72 65 20 | 73 6f 6d 65 20 77 65 69 |ere are |some wei|
|000039c0| 72 64 0d 69 73 73 75 65 | 73 20 61 73 73 6f 63 69 |rd.issue|s associ|
|000039d0| 61 74 65 64 20 77 69 74 | 68 20 72 75 6e 6e 69 6e |ated wit|h runnin|
|000039e0| 67 20 54 53 4d 20 77 69 | 6e 64 6f 77 73 2e 20 44 |g TSM wi|ndows. D|
|000039f0| 6f 6e 61 6c 64 20 42 72 | 6f 77 6e 20 6f 66 20 43 |onald Br|own of C|
|00003a00| 45 20 53 6f 66 74 77 61 | 72 65 20 77 72 6f 74 65 |E Softwa|re wrote|
|00003a10| 0d 61 20 6c 69 74 74 6c | 65 20 64 65 6d 6f 20 61 |.a littl|e demo a|
|00003a20| 70 70 20 74 68 61 74 20 | 64 6f 65 73 20 74 68 69 |pp that |does thi|
|00003a30| 73 20 66 6f 72 20 6c 61 | 73 74 20 79 65 61 72 73 |s for la|st years|
|00003a40| 27 20 4d 61 63 48 61 63 | 6b 3b 20 70 65 72 68 61 |' MacHac|k; perha|
|00003a50| 70 73 20 74 68 65 20 73 | 6f 75 72 63 65 0d 63 6f |ps the s|ource.co|
|00003a60| 64 65 20 69 73 20 61 72 | 6f 75 6e 64 20 73 6f 6d |de is ar|ound som|
|00003a70| 65 77 68 65 72 65 2e 0d | 0d 2d 2d 4a 65 6e 73 20 |ewhere..|.--Jens |
|00003a80| 41 6c 66 6b 65 0d 20 20 | 6a 65 6e 73 5f 61 6c 66 |Alfke. |jens_alf|
|00003a90| 6b 65 40 70 6f 77 65 72 | 74 61 6c 6b 20 20 20 20 |ke@power|talk |
|00003aa0| 20 20 20 20 20 20 20 20 | 20 20 52 65 62 65 6c 20 | | Rebel |
|00003ab0| 67 69 72 6c 2c 20 72 65 | 62 65 6c 20 67 69 72 6c |girl, re|bel girl|
|00003ac0| 2c 0d 20 20 20 20 20 20 | 20 20 20 20 20 20 2e 61 |,. | .a|
|00003ad0| 70 70 6c 65 2e 63 6f 6d | 20 20 20 20 20 20 20 20 |pple.com| |
|00003ae0| 20 20 20 20 20 20 52 65 | 62 65 6c 20 67 69 72 6c | Re|bel girl|
|00003af0| 20 79 6f 75 20 61 72 65 | 20 74 68 65 20 71 75 65 | you are| the que|
|00003b00| 65 6e 20 6f 66 20 6d 79 | 20 77 6f 72 6c 64 0d 0d |en of my| world..|
|00003b10| 2b 2b 2b 2b 2b 2b 2b 2b | 2b 2b 2b 2b 2b 2b 2b 2b |++++++++|++++++++|
|00003b20| 2b 2b 2b 2b 2b 2b 2b 2b | 2b 2b 2b 0d 0d 3e 46 72 |++++++++|+++..>Fr|
|00003b30| 6f 6d 20 4a 6f 65 20 46 | 72 61 6e 63 69 73 20 3c |om Joe F|rancis <|
|00003b40| 4a 6f 65 2e 46 72 61 6e | 63 69 73 40 64 61 72 74 |Joe.Fran|cis@dart|
|00003b50| 6d 6f 75 74 68 2e 65 64 | 75 3e 0d 44 61 74 65 3a |mouth.ed|u>.Date:|
|00003b60| 20 33 31 20 4d 61 79 20 | 31 39 39 34 20 31 39 3a | 31 May |1994 19:|
|00003b70| 33 38 3a 30 39 20 47 4d | 54 0d 4f 72 67 61 6e 69 |38:09 GM|T.Organi|
|00003b80| 7a 61 74 69 6f 6e 3a 20 | 53 6d 6f 6f 74 68 20 52 |zation: |Smooth R|
|00003b90| 6f 6f 20 53 6f 66 74 77 | 61 72 65 0d 0d 45 64 64 |oo Softw|are..Edd|
|00003ba0| 79 20 4a 2e 20 47 75 72 | 6e 65 79 2c 20 65 67 75 |y J. Gur|ney, egu|
|00003bb0| 72 6e 65 79 40 76 63 64 | 2e 68 70 2e 63 6f 6d 20 |rney@vcd|.hp.com |
|00003bc0| 77 72 69 74 65 73 3a 0d | 3e 20 2a 20 46 69 72 73 |writes:.|> * Firs|
|00003bd0| 74 20 62 75 67 3a 0d 3e | 20 4f 70 65 6e 20 61 20 |t bug:.>| Open a |
|00003be0| 6e 65 77 20 77 69 6e 64 | 6f 77 2c 20 41 2e 20 4f |new wind|ow, A. O|
|00003bf0| 70 65 6e 20 61 20 6e 65 | 77 20 77 69 6e 64 6f 77 |pen a ne|w window|
|00003c00| 2c 20 42 2e 20 48 69 64 | 65 20 77 69 6e 64 6f 77 |, B. Hid|e window|
|00003c10| 20 42 20 61 6e 64 20 64 | 69 73 70 6f 73 65 20 6f | B and d|ispose o|
|00003c20| 66 0d 3e 20 77 69 6e 64 | 6f 77 20 41 2e 20 4e 6f |f.> wind|ow A. No|
|00003c30| 77 20 63 72 65 61 74 65 | 20 61 20 6e 65 77 20 77 |w create| a new w|
|00003c40| 69 6e 64 6f 77 20 43 2e | 20 49 74 20 64 6f 65 73 |indow C.| It does|
|00003c50| 20 4e 4f 54 20 67 65 74 | 20 68 69 6c 69 74 65 64 | NOT get| hilited|
|00003c60| 2c 20 62 75 74 20 69 74 | 20 49 53 0d 3e 20 61 63 |, but it| IS.> ac|
|00003c70| 74 69 76 65 2e 20 5b 2e | 2e 2e 2e 5d 0d 0d 3e 20 |tive. [.|...]..> |
|00003c80| 2a 20 53 65 63 6f 6e 64 | 20 62 75 67 3a 0d 3e 20 |* Second| bug:.> |
|00003c90| 4f 70 65 6e 20 61 20 6e | 65 77 20 77 69 6e 64 6f |Open a n|ew windo|
|00003ca0| 77 2c 20 41 2e 20 4f 70 | 65 6e 20 61 20 6e 65 77 |w, A. Op|en a new|
|00003cb0| 20 77 69 6e 64 6f 77 2c | 20 42 2e 20 4f 70 65 6e | window,| B. Open|
|00003cc0| 20 61 20 6e 65 77 20 77 | 69 6e 64 6f 77 2c 20 43 | a new w|indow, C|
|00003cd0| 20 61 6e 64 0d 3e 20 68 | 69 64 65 20 77 69 6e 64 | and.> h|ide wind|
|00003ce0| 6f 77 20 42 2e 20 4e 6f | 77 20 73 68 6f 77 20 77 |ow B. No|w show w|
|00003cf0| 69 6e 64 6f 77 20 42 20 | 61 6e 64 20 68 69 64 65 |indow B |and hide|
|00003d00| 20 77 69 6e 64 6f 77 20 | 43 2e 20 4e 6f 77 20 68 | window |C. Now h|
|00003d10| 69 64 65 20 77 69 6e 64 | 6f 77 0d 3e 20 42 2c 20 |ide wind|ow.> B, |
|00003d20| 6c 65 61 76 69 6e 67 20 | 6f 6e 6c 79 20 77 69 6e |leaving |only win|
|00003d30| 64 6f 77 20 41 20 76 69 | 73 69 62 6c 65 2e 20 57 |dow A vi|sible. W|
|00003d40| 69 6e 64 6f 77 20 41 20 | 69 73 20 4e 4f 54 20 61 |indow A |is NOT a|
|00003d50| 63 74 69 76 65 20 61 6e | 64 20 69 73 20 4e 4f 54 |ctive an|d is NOT|
|00003d60| 0d 3e 20 68 69 6c 69 74 | 65 64 2e 20 20 5b 2e 2e |.> hilit|ed. [..|
|00003d70| 2e 2e 5d 0d 0d 48 65 72 | 65 20 61 72 65 20 6d 79 |..]..Her|e are my|
|00003d80| 20 76 65 72 73 69 6f 6e | 73 20 6f 66 20 74 68 65 | version|s of the|
|00003d90| 20 72 65 6c 61 74 65 64 | 20 72 6f 75 74 69 6e 65 | related| routine|
|00003da0| 73 2e 20 20 54 68 65 73 | 65 20 73 68 6f 75 6c 64 |s. Thes|e should|
|00003db0| 20 66 69 78 20 74 68 65 | 20 62 75 67 73 20 0d 79 | fix the| bugs .y|
|00003dc0| 6f 75 20 73 61 77 2e 20 | 20 50 6c 65 61 73 65 20 |ou saw. | Please |
|00003dd0| 6c 65 74 20 6d 65 20 6b | 6e 6f 77 20 69 66 20 74 |let me k|now if t|
|00003de0| 68 65 73 65 20 63 61 75 | 73 65 20 61 6e 79 20 70 |hese cau|se any p|
|00003df0| 72 6f 62 6c 65 6d 73 2e | 20 20 49 20 65 64 69 74 |roblems.| I edit|
|00003e00| 65 64 20 74 68 69 73 0d | 61 20 6c 69 74 74 6c 65 |ed this.|a little|
|00003e10| 20 74 6f 20 6d 61 6b 65 | 20 74 68 65 20 77 72 61 | to make| the wra|
|00003e20| 70 70 6e 67 20 77 6f 72 | 6b 20 62 65 74 74 65 72 |ppng wor|k better|
|00003e30| 20 66 6f 72 20 74 68 65 | 20 70 6f 73 74 20 2d 20 | for the| post - |
|00003e40| 49 20 6d 61 79 20 68 61 | 76 65 20 0d 69 6e 74 72 |I may ha|ve .intr|
|00003e50| 6f 64 75 63 65 64 20 74 | 79 70 6f 73 2e 20 20 43 |oduced t|ypos. C|
|00003e60| 61 76 65 61 74 20 45 6d | 70 74 6f 72 2e 20 20 49 |aveat Em|ptor. I|
|00003e70| 66 20 74 68 69 73 20 63 | 6f 64 65 20 66 61 69 6c |f this c|ode fail|
|00003e80| 73 2c 20 49 20 77 69 6c | 6c 20 72 65 66 75 6e 64 |s, I wil|l refund|
|00003e90| 0d 79 6f 75 72 20 66 75 | 6c 6c 20 70 75 72 63 68 |.your fu|ll purch|
|00003ea0| 61 73 65 20 70 72 69 63 | 65 2e 20 20 3a 2d 50 0d |ase pric|e. :-P.|
|00003eb0| 0d 70 61 73 63 61 6c 20 | 76 6f 69 64 20 53 68 6f |.pascal |void Sho|
|00003ec0| 77 52 65 66 65 72 65 6e | 63 65 64 57 69 6e 64 6f |wReferen|cedWindo|
|00003ed0| 77 28 57 69 6e 64 6f 77 | 52 65 66 20 77 69 6e 64 |w(Window|Ref wind|
|00003ee0| 6f 77 54 6f 53 68 6f 77 | 29 0d 7b 0d 09 57 69 6e |owToShow|).{..Win|
|00003ef0| 64 6f 77 52 65 66 09 09 | 09 66 72 6f 6e 74 4e 6f |dowRef..|.frontNo|
|00003f00| 6e 46 6c 6f 61 74 69 6e | 67 57 69 6e 64 6f 77 3b |nFloatin|gWindow;|
|00003f10| 0d 09 41 63 74 69 76 61 | 74 65 48 61 6e 64 6c 65 |..Activa|teHandle|
|00003f20| 72 55 50 50 09 61 63 74 | 69 76 61 74 65 48 61 6e |rUPP.act|ivateHan|
|00003f30| 64 6c 65 72 50 72 6f 63 | 3b 0d 09 73 68 6f 72 74 |dlerProc|;..short|
|00003f40| 09 09 09 09 77 69 6e 64 | 6f 77 43 6c 61 73 73 3b |....wind|owClass;|
|00003f50| 0d 09 42 6f 6f 6c 65 61 | 6e 09 09 09 09 77 69 6e |..Boolea|n....win|
|00003f60| 64 6f 77 49 73 49 6e 46 | 72 6f 6e 74 20 3d 20 66 |dowIsInF|ront = f|
|00003f70| 61 6c 73 65 3b 0d 09 0d | 09 69 66 20 28 47 65 74 |alse;...|.if (Get|
|00003f80| 57 69 6e 64 6f 77 56 69 | 73 69 62 6c 65 28 77 69 |WindowVi|sible(wi|
|00003f90| 6e 64 6f 77 54 6f 53 68 | 6f 77 29 20 21 3d 20 66 |ndowToSh|ow) != f|
|00003fa0| 61 6c 73 65 29 0d 09 09 | 72 65 74 75 72 6e 3b 0d |alse)...|return;.|
|00003fb0| 09 09 0d 09 77 69 6e 64 | 6f 77 43 6c 61 73 73 20 |....wind|owClass |
|00003fc0| 3d 20 47 65 74 57 69 6e | 64 6f 77 4b 69 6e 64 28 |= GetWin|dowKind(|
|00003fd0| 77 69 6e 64 6f 77 54 6f | 53 68 6f 77 29 3b 0d 09 |windowTo|Show);..|
|00003fe0| 66 72 6f 6e 74 4e 6f 6e | 46 6c 6f 61 74 69 6e 67 |frontNon|Floating|
|00003ff0| 57 69 6e 64 6f 77 20 3d | 20 46 72 6f 6e 74 4e 6f |Window =| FrontNo|
|00004000| 6e 46 6c 6f 61 74 69 6e | 67 57 69 6e 64 6f 77 28 |nFloatin|gWindow(|
|00004010| 29 3b 0d 09 0d 09 2f 2f | 20 49 66 20 74 68 65 20 |);....//| If the |
|00004020| 77 69 6e 64 6f 77 20 77 | 65 20 61 72 65 20 73 68 |window w|e are sh|
|00004030| 6f 77 69 6e 67 20 77 69 | 6c 6c 20 62 65 63 6f 6d |owing wi|ll becom|
|00004040| 65 20 66 72 6f 6e 74 64 | 6f 63 2c 20 64 65 61 63 |e frontd|oc, deac|
|00004050| 74 69 76 61 74 65 0d 09 | 2f 2f 20 66 6f 72 6d 65 |tivate..|// forme|
|00004060| 72 20 66 72 6f 6e 74 64 | 6f 63 2c 20 61 6e 64 20 |r frontd|oc, and |
|00004070| 61 63 74 69 76 61 74 65 | 20 6e 65 77 20 6f 6e 65 |activate| new one|
|00004080| 2e 0d 09 0d 09 69 66 20 | 28 77 69 6e 64 6f 77 43 |.....if |(windowC|
|00004090| 6c 61 73 73 20 21 3d 20 | 6b 41 70 70 6c 69 63 61 |lass != |kApplica|
|000040a0| 74 69 6f 6e 46 6c 6f 61 | 74 65 72 4b 69 6e 64 29 |tionFloa|terKind)|
|000040b0| 20 0d 09 7b 0d 09 09 69 | 66 20 28 49 73 49 6e 46 | ..{...i|f (IsInF|
|000040c0| 72 6f 6e 74 4f 66 28 77 | 69 6e 64 6f 77 54 6f 53 |rontOf(w|indowToS|
|000040d0| 68 6f 77 2c 66 72 6f 6e | 74 4e 6f 6e 46 6c 6f 61 |how,fron|tNonFloa|
|000040e0| 74 69 6e 67 57 69 6e 64 | 6f 77 29 29 0d 09 09 7b |tingWind|ow))...{|
|000040f0| 0d 09 09 09 69 66 20 28 | 66 72 6f 6e 74 4e 6f 6e |....if (|frontNon|
|00004100| 46 6c 6f 61 74 69 6e 67 | 57 69 6e 64 6f 77 29 20 |Floating|Window) |
|00004110| 0d 09 09 09 09 44 65 61 | 63 74 69 76 61 74 65 57 |.....Dea|ctivateW|
|00004120| 69 6e 64 6f 77 28 66 72 | 6f 6e 74 4e 6f 6e 46 6c |indow(fr|ontNonFl|
|00004130| 6f 61 74 69 6e 67 57 69 | 6e 64 6f 77 29 3b 0d 09 |oatingWi|ndow);..|
|00004140| 09 09 53 65 74 57 69 6e | 64 6f 77 48 69 6c 69 74 |..SetWin|dowHilit|
|00004150| 65 28 77 69 6e 64 6f 77 | 54 6f 53 68 6f 77 2c 20 |e(window|ToShow, |
|00004160| 74 72 75 65 29 3b 0d 09 | 09 09 77 69 6e 64 6f 77 |true);..|..window|
|00004170| 49 73 49 6e 46 72 6f 6e | 74 20 3d 20 74 72 75 65 |IsInFron|t = true|
|00004180| 3b 0d 09 09 7d 0d 09 7d | 0d 09 65 6c 73 65 20 0d |;...}..}|..else .|
|00004190| 09 7b 0d 09 0d 09 2f 2f | 20 41 20 66 6c 6f 61 74 |.{....//| A float|
|000041a0| 69 6e 67 20 77 69 6e 64 | 6f 77 20 69 73 20 61 62 |ing wind|ow is ab|
|000041b0| 6f 75 74 20 74 6f 20 62 | 65 20 73 68 6f 77 6e 2e |out to b|e shown.|
|000041c0| 20 0d 09 2f 2f 20 4d 61 | 6b 65 20 73 75 72 65 20 | ..// Ma|ke sure |
|000041d0| 74 68 65 20 77 69 6e 64 | 6f 77 73 20 69 6e 20 74 |the wind|ows in t|
|000041e0| 68 65 20 77 69 6e 64 6f | 77 20 6c 69 73 74 0d 09 |he windo|w list..|
|000041f0| 2f 2f 20 61 72 65 20 61 | 6c 6c 20 69 6e 20 74 68 |// are a|ll in th|
|00004200| 65 20 72 69 67 68 74 20 | 70 6c 61 63 65 2e 0d 09 |e right |place...|
|00004210| 0d 09 09 56 61 6c 69 64 | 61 74 65 57 69 6e 64 6f |...Valid|ateWindo|
|00004220| 77 4c 69 73 74 28 29 3b | 0d 09 09 0d 09 2f 2f 20 |wList();|.....// |
|00004230| 43 68 65 63 6b 20 74 6f | 20 73 65 65 20 69 66 20 |Check to| see if |
|00004240| 61 20 6d 6f 64 61 6c 20 | 77 69 6e 64 6f 77 20 69 |a modal |window i|
|00004250| 73 20 75 70 20 0d 09 2f | 2f 20 62 65 66 6f 72 65 |s up ../|/ before|
|00004260| 20 74 72 79 69 6e 67 20 | 74 6f 20 68 69 67 68 6c | trying |to highl|
|00004270| 69 67 68 74 20 69 74 2e | 0d 09 0d 09 09 66 72 6f |ight it.|.....fro|
|00004280| 6e 74 4e 6f 6e 46 6c 6f | 61 74 69 6e 67 57 69 6e |ntNonFlo|atingWin|
|00004290| 64 6f 77 20 3d 20 46 72 | 6f 6e 74 4e 6f 6e 46 6c |dow = Fr|ontNonFl|
|000042a0| 6f 61 74 69 6e 67 57 69 | 6e 64 6f 77 28 29 3b 0d |oatingWi|ndow();.|
|000042b0| 09 09 69 66 20 28 28 66 | 72 6f 6e 74 4e 6f 6e 46 |..if ((f|rontNonF|
|000042c0| 6c 6f 61 74 69 6e 67 57 | 69 6e 64 6f 77 20 21 3d |loatingW|indow !=|
|000042d0| 20 6e 69 6c 29 20 26 26 | 0d 09 09 09 28 66 72 6f | nil) &&|....(fro|
|000042e0| 6e 74 4e 6f 6e 46 6c 6f | 61 74 69 6e 67 57 69 6e |ntNonFlo|atingWin|
|000042f0| 64 6f 77 20 3d 3d 20 28 | 57 69 6e 64 6f 77 52 65 |dow == (|WindowRe|
|00004300| 66 29 20 46 72 6f 6e 74 | 57 69 6e 64 6f 77 28 29 |f) Front|Window()|
|00004310| 29 20 26 26 0d 09 09 09 | 28 57 69 6e 64 6f 77 49 |) &&....|(WindowI|
|00004320| 73 4d 6f 64 61 6c 28 66 | 72 6f 6e 74 4e 6f 6e 46 |sModal(f|rontNonF|
|00004330| 6c 6f 61 74 69 6e 67 57 | 69 6e 64 6f 77 29 29 29 |loatingW|indow)))|
|00004340| 0d 09 09 09 53 65 74 57 | 69 6e 64 6f 77 48 69 6c |....SetW|indowHil|
|00004350| 69 74 65 28 77 69 6e 64 | 6f 77 54 6f 53 68 6f 77 |ite(wind|owToShow|
|00004360| 2c 20 66 61 6c 73 65 29 | 3b 0d 09 09 65 6c 73 65 |, false)|;...else|
|00004370| 20 0d 09 09 7b 0d 09 09 | 09 53 65 74 57 69 6e 64 | ...{...|.SetWind|
|00004380| 6f 77 48 69 6c 69 74 65 | 28 77 69 6e 64 6f 77 54 |owHilite|(windowT|
|00004390| 6f 53 68 6f 77 2c 20 74 | 72 75 65 29 3b 0d 09 09 |oShow, t|rue);...|
|000043a0| 09 77 69 6e 64 6f 77 49 | 73 49 6e 46 72 6f 6e 74 |.windowI|sInFront|
|000043b0| 20 3d 20 74 72 75 65 3b | 0d 09 09 7d 0d 09 7d 0d | = true;|...}..}.|
|000043c0| 09 0d 09 2f 2f 20 53 68 | 6f 77 20 74 68 65 20 77 |...// Sh|ow the w|
|000043d0| 69 6e 64 6f 77 0d 09 0d | 09 53 68 6f 77 48 69 64 |indow...|.ShowHid|
|000043e0| 65 28 28 57 69 6e 64 6f | 77 50 74 72 29 20 77 69 |e((Windo|wPtr) wi|
|000043f0| 6e 64 6f 77 54 6f 53 68 | 6f 77 2c 20 74 72 75 65 |ndowToSh|ow, true|
|00004400| 29 3b 0d 09 0d 09 2f 2f | 20 49 66 20 74 68 69 73 |);....//| If this|
|00004410| 20 69 73 20 74 68 65 20 | 6e 65 77 20 66 72 6f 6e | is the |new fron|
|00004420| 74 6d 6f 73 74 20 64 6f | 63 75 6d 65 6e 74 20 77 |tmost do|cument w|
|00004430| 69 6e 64 6f 77 20 0d 09 | 2f 2f 20 6f 72 20 61 20 |indow ..|// or a |
|00004440| 66 6c 6f 61 74 69 6e 67 | 20 77 69 6e 64 6f 77 2c |floating| window,|
|00004450| 20 73 65 6e 64 20 69 74 | 20 61 6e 20 61 63 74 69 | send it| an acti|
|00004460| 76 61 74 65 20 65 76 65 | 6e 74 0d 09 0d 09 69 66 |vate eve|nt....if|
|00004470| 20 28 77 69 6e 64 6f 77 | 49 73 49 6e 46 72 6f 6e | (window|IsInFron|
|00004480| 74 29 20 0d 09 7b 0d 09 | 09 61 63 74 69 76 61 74 |t) ..{..|.activat|
|00004490| 65 48 61 6e 64 6c 65 72 | 50 72 6f 63 20 3d 20 47 |eHandler|Proc = G|
|000044a0| 65 74 41 63 74 69 76 61 | 74 65 48 61 6e 64 6c 65 |etActiva|teHandle|
|000044b0| 72 50 72 6f 63 28 77 69 | 6e 64 6f 77 54 6f 53 68 |rProc(wi|ndowToSh|
|000044c0| 6f 77 29 3b 0d 09 09 69 | 66 20 28 61 63 74 69 76 |ow);...i|f (activ|
|000044d0| 61 74 65 48 61 6e 64 6c | 65 72 50 72 6f 63 20 21 |ateHandl|erProc !|
|000044e0| 3d 20 6e 69 6c 29 0d 09 | 09 09 43 61 6c 6c 41 63 |= nil)..|..CallAc|
|000044f0| 74 69 76 61 74 65 48 61 | 6e 64 6c 65 72 50 72 6f |tivateHa|ndlerPro|
|00004500| 63 28 61 63 74 69 76 61 | 74 65 48 61 6e 64 6c 65 |c(activa|teHandle|
|00004510| 72 50 72 6f 63 2c 20 0d | 09 09 09 09 09 77 69 6e |rProc, .|.....win|
|00004520| 64 6f 77 54 6f 53 68 6f | 77 2c 20 6b 41 63 74 69 |dowToSho|w, kActi|
|00004530| 76 61 74 65 57 69 6e 64 | 6f 77 29 3b 0d 09 7d 0d |vateWind|ow);..}.|
|00004540| 7d 0d 0d 70 61 73 63 61 | 6c 20 76 6f 69 64 20 48 |}..pasca|l void H|
|00004550| 69 64 65 52 65 66 65 72 | 65 6e 63 65 64 57 69 6e |ideRefer|encedWin|
|00004560| 64 6f 77 28 57 69 6e 64 | 6f 77 52 65 66 20 77 69 |dow(Wind|owRef wi|
|00004570| 6e 64 6f 77 54 6f 48 69 | 64 65 29 0d 7b 0d 09 57 |ndowToHi|de).{..W|
|00004580| 69 6e 64 6f 77 52 65 66 | 09 09 09 66 72 6f 6e 74 |indowRef|...front|
|00004590| 46 6c 6f 61 74 65 72 3b | 0d 09 57 69 6e 64 6f 77 |Floater;|..Window|
|000045a0| 52 65 66 09 09 09 66 72 | 6f 6e 74 4e 6f 6e 46 6c |Ref...fr|ontNonFl|
|000045b0| 6f 61 74 65 72 3b 0d 09 | 0d 09 2f 2f 20 54 68 65 |oater;..|..// The|
|000045c0| 20 6f 72 69 67 69 6e 61 | 6c 20 63 6f 64 65 20 68 | origina|l code h|
|000045d0| 65 72 65 20 72 65 6f 72 | 64 65 72 73 20 77 69 6e |ere reor|ders win|
|000045e0| 64 6f 77 73 20 69 6e 20 | 74 68 65 20 77 69 6e 64 |dows in |the wind|
|000045f0| 6f 77 20 6c 69 73 74 0d | 09 2f 2f 20 20 74 6f 20 |ow list.|.// to |
|00004600| 6d 61 6b 65 20 68 69 64 | 64 65 6e 20 77 69 6e 64 |make hid|den wind|
|00004610| 6f 77 73 20 73 77 61 70 | 20 70 6c 61 63 65 73 20 |ows swap| places |
|00004620| 77 69 74 68 20 74 68 65 | 20 77 69 6e 64 6f 77 20 |with the| window |
|00004630| 62 65 68 69 6e 64 0d 09 | 2f 2f 20 20 74 68 65 6d |behind..|// them|
|00004640| 20 69 66 3a 0d 09 2f 2f | 20 20 61 29 20 74 68 65 | if:..//| a) the|
|00004650| 79 20 61 72 65 20 65 69 | 74 68 65 72 20 74 68 65 |y are ei|ther the|
|00004660| 20 66 72 6f 6e 74 6d 6f | 73 74 20 66 6c 6f 61 74 | frontmo|st float|
|00004670| 65 72 20 6f 72 20 66 72 | 6f 6e 74 6d 6f 73 74 20 |er or fr|ontmost |
|00004680| 64 6f 63 3b 0d 09 2f 2f | 20 20 62 29 20 74 68 65 |doc;..//| b) the|
|00004690| 72 65 20 69 73 20 61 20 | 77 69 6e 64 6f 77 20 6f |re is a |window o|
|000046a0| 66 20 74 68 65 20 73 61 | 6d 65 20 74 79 70 65 20 |f the sa|me type |
|000046b0| 62 65 68 69 6e 64 20 74 | 68 65 6d 3b 0d 09 2f 2f |behind t|hem;..//|
|000046c0| 20 20 63 29 20 74 68 61 | 74 20 77 69 6e 64 6f 77 | c) tha|t window|
|000046d0| 20 62 65 68 69 6e 64 20 | 69 73 20 76 69 73 69 62 | behind |is visib|
|000046e0| 6c 65 0d 09 2f 2f 20 20 | 54 68 61 74 20 64 69 64 |le..// |That did|
|000046f0| 6e 27 74 20 6d 61 6b 65 | 20 61 20 6c 6f 74 20 6f |n't make| a lot o|
|00004700| 66 20 73 65 6e 73 65 20 | 74 6f 20 6d 65 2c 20 61 |f sense |to me, a|
|00004710| 6e 64 20 69 74 20 63 61 | 75 73 65 64 20 62 75 67 |nd it ca|used bug|
|00004720| 73 2c 0d 09 2f 2f 20 20 | 73 6f 20 49 27 76 65 20 |s,..// |so I've |
|00004730| 73 63 72 61 70 70 65 64 | 20 69 74 20 61 6e 64 20 |scrapped| it and |
|00004740| 74 61 6b 65 6e 20 61 20 | 73 69 6d 70 6c 65 72 20 |taken a |simpler |
|00004750| 61 70 70 72 6f 61 63 68 | 2e 09 0d 09 0d 09 2f 2f |approach|......//|
|00004760| 20 44 6f 6e 27 74 20 64 | 6f 20 61 6e 79 74 68 69 | Don't d|o anythi|
|00004770| 6e 67 20 69 66 20 74 68 | 65 20 77 69 6e 64 6f 77 |ng if th|e window|
|00004780| 20 69 73 20 61 6c 72 65 | 61 64 79 20 69 6e 76 69 | is alre|ady invi|
|00004790| 73 69 62 6c 65 2e 0d 09 | 0d 09 69 66 20 28 47 65 |sible...|..if (Ge|
|000047a0| 74 57 69 6e 64 6f 77 56 | 69 73 69 62 6c 65 28 77 |tWindowV|isible(w|
|000047b0| 69 6e 64 6f 77 54 6f 48 | 69 64 65 29 20 3d 3d 20 |indowToH|ide) == |
|000047c0| 66 61 6c 73 65 29 0d 09 | 09 72 65 74 75 72 6e 3b |false)..|.return;|
|000047d0| 0d 09 0d 09 2f 2f 20 47 | 65 74 20 74 68 65 20 66 |....// G|et the f|
|000047e0| 69 72 73 74 20 76 69 73 | 69 62 6c 65 20 66 6c 6f |irst vis|ible flo|
|000047f0| 61 74 69 6e 67 20 77 69 | 6e 64 6f 77 2c 20 69 66 |ating wi|ndow, if|
|00004800| 20 61 6e 79 2e 0d 09 0d | 09 66 72 6f 6e 74 46 6c | any....|.frontFl|
|00004810| 6f 61 74 65 72 20 3d 20 | 28 57 69 6e 64 6f 77 52 |oater = |(WindowR|
|00004820| 65 66 29 20 46 72 6f 6e | 74 57 69 6e 64 6f 77 28 |ef) Fron|tWindow(|
|00004830| 29 3b 0d 09 69 66 20 28 | 47 65 74 57 69 6e 64 6f |);..if (|GetWindo|
|00004840| 77 4b 69 6e 64 28 66 72 | 6f 6e 74 46 6c 6f 61 74 |wKind(fr|ontFloat|
|00004850| 65 72 29 20 21 3d 20 6b | 41 70 70 6c 69 63 61 74 |er) != k|Applicat|
|00004860| 69 6f 6e 46 6c 6f 61 74 | 65 72 4b 69 6e 64 29 0d |ionFloat|erKind).|
|00004870| 09 09 66 72 6f 6e 74 46 | 6c 6f 61 74 65 72 20 3d |..frontF|loater =|
|00004880| 20 6e 69 6c 3b 0d 09 09 | 0d 09 2f 2f 20 47 65 74 | nil;...|..// Get|
|00004890| 20 74 68 65 20 66 69 72 | 73 74 20 76 69 73 69 62 | the fir|st visib|
|000048a0| 6c 65 20 64 6f 63 75 6d | 65 6e 74 20 77 69 6e 64 |le docum|ent wind|
|000048b0| 6f 77 2c 20 69 66 20 61 | 6e 79 2e 0d 09 0d 09 66 |ow, if a|ny.....f|
|000048c0| 72 6f 6e 74 4e 6f 6e 46 | 6c 6f 61 74 65 72 20 3d |rontNonF|loater =|
|000048d0| 20 46 72 6f 6e 74 4e 6f | 6e 46 6c 6f 61 74 69 6e | FrontNo|nFloatin|
|000048e0| 67 57 69 6e 64 6f 77 28 | 29 3b 0d 09 0d 09 2f 2f |gWindow(|);....//|
|000048f0| 20 48 69 64 65 20 74 68 | 65 20 77 69 6e 64 6f 77 | Hide th|e window|
|00004900| 2e 0d 09 0d 09 53 68 6f | 77 48 69 64 65 28 28 57 |.....Sho|wHide((W|
|00004910| 69 6e 64 6f 77 50 74 72 | 29 20 77 69 6e 64 6f 77 |indowPtr|) window|
|00004920| 54 6f 48 69 64 65 2c 20 | 66 61 6c 73 65 29 3b 0d |ToHide, |false);.|
|00004930| 0d 09 2f 2f 20 69 66 20 | 77 65 20 61 72 65 20 68 |..// if |we are h|
|00004940| 69 64 69 6e 67 20 74 68 | 65 20 66 72 6f 6e 74 6d |iding th|e frontm|
|00004950| 6f 73 74 20 64 6f 63 20 | 77 69 6e 64 6f 77 2c 20 |ost doc |window, |
|00004960| 61 63 74 69 76 61 74 65 | 20 74 68 65 20 6e 65 78 |activate| the nex|
|00004970| 74 0d 09 2f 2f 20 66 72 | 6f 6e 74 6d 6f 73 74 20 |t..// fr|ontmost |
|00004980| 64 6f 63 20 77 69 6e 64 | 6f 77 2c 20 69 66 20 61 |doc wind|ow, if a|
|00004990| 6e 79 20 61 72 65 20 76 | 69 73 69 62 6c 65 2e 0d |ny are v|isible..|
|000049a0| 09 0d 09 69 66 20 28 77 | 69 6e 64 6f 77 54 6f 48 |...if (w|indowToH|
|000049b0| 69 64 65 20 3d 3d 20 66 | 72 6f 6e 74 4e 6f 6e 46 |ide == f|rontNonF|
|000049c0| 6c 6f 61 74 65 72 29 0d | 09 7b 0d 09 09 2f 2f 20 |loater).|.{...// |
|000049d0| 6e 6f 77 20 74 68 61 74 | 20 77 65 27 76 65 20 68 |now that| we've h|
|000049e0| 69 64 64 65 6e 20 77 69 | 6e 64 6f 77 54 6f 48 69 |idden wi|ndowToHi|
|000049f0| 64 65 2c 20 66 72 6f 6e | 74 4e 6f 6e 46 6c 6f 61 |de, fron|tNonFloa|
|00004a00| 74 65 72 20 77 69 6c 6c | 20 0d 09 09 2f 2f 20 62 |ter will| ...// b|
|00004a10| 65 20 64 69 66 66 65 72 | 65 6e 74 0d 09 09 66 72 |e differ|ent...fr|
|00004a20| 6f 6e 74 4e 6f 6e 46 6c | 6f 61 74 65 72 20 3d 20 |ontNonFl|oater = |
|00004a30| 46 72 6f 6e 74 4e 6f 6e | 46 6c 6f 61 74 69 6e 67 |FrontNon|Floating|
|00004a40| 57 69 6e 64 6f 77 28 29 | 3b 0d 09 09 69 66 20 28 |Window()|;...if (|
|00004a50| 66 72 6f 6e 74 4e 6f 6e | 46 6c 6f 61 74 65 72 29 |frontNon|Floater)|
|00004a60| 0d 09 09 7b 0d 09 09 09 | 41 63 74 69 76 61 74 65 |...{....|Activate|
|00004a70| 57 69 6e 64 6f 77 28 66 | 72 6f 6e 74 4e 6f 6e 46 |Window(f|rontNonF|
|00004a80| 6c 6f 61 74 65 72 29 3b | 0d 09 09 7d 0d 09 7d 0d |loater);|...}..}.|
|00004a90| 7d 0d 0d 42 6f 6f 6c 65 | 61 6e 20 49 73 49 6e 46 |}..Boole|an IsInF|
|00004aa0| 72 6f 6e 74 4f 66 28 57 | 69 6e 64 6f 77 52 65 66 |rontOf(W|indowRef|
|00004ab0| 20 77 69 6e 31 2c 20 57 | 69 6e 64 6f 77 52 65 66 | win1, W|indowRef|
|00004ac0| 20 77 69 6e 32 29 0d 7b | 0d 09 57 69 6e 64 6f 77 | win2).{|..Window|
|00004ad0| 52 65 66 09 6e 65 78 74 | 57 69 6e 64 6f 77 20 3d |Ref.next|Window =|
|00004ae0| 20 77 69 6e 31 3b 0d 0d | 09 2f 2f 6e 69 6c 20 77 | win1;..|.//nil w|
|00004af0| 69 6e 64 6f 77 73 20 61 | 72 65 20 61 6c 77 61 79 |indows a|re alway|
|00004b00| 73 20 62 65 68 69 6e 64 | 20 6f 74 68 65 72 20 77 |s behind| other w|
|00004b10| 69 6e 64 6f 77 73 0d 09 | 69 66 20 28 21 77 69 6e |indows..|if (!win|
|00004b20| 31 29 20 72 65 74 75 72 | 6e 20 66 61 6c 73 65 3b |1) retur|n false;|
|00004b30| 20 20 0d 09 0d 09 2f 2f | 6f 74 68 65 72 20 77 69 | ....//|other wi|
|00004b40| 6e 64 6f 77 73 20 61 72 | 65 20 61 6c 77 61 79 73 |ndows ar|e always|
|00004b50| 20 61 68 65 61 64 20 6f | 66 20 6e 69 6c 20 77 69 | ahead o|f nil wi|
|00004b60| 6e 64 6f 77 73 0d 09 69 | 66 20 28 21 77 69 6e 32 |ndows..i|f (!win2|
|00004b70| 29 20 72 65 74 75 72 6e | 20 74 72 75 65 3b 20 0d |) return| true; .|
|00004b80| 09 0d 09 2f 2f 6f 6b 2c | 20 73 6f 20 74 68 65 20 |...//ok,| so the |
|00004b90| 70 72 6f 67 72 61 6d 6d | 65 72 20 61 73 6b 65 64 |programm|er asked|
|00004ba0| 20 6d 65 20 61 20 64 75 | 6d 62 20 71 75 65 73 74 | me a du|mb quest|
|00004bb0| 69 6f 6e 20 20 0d 09 69 | 66 20 28 77 69 6e 31 20 |ion ..i|f (win1 |
|00004bc0| 3d 3d 20 77 69 6e 32 29 | 20 72 65 74 75 72 6e 20 |== win2)| return |
|00004bd0| 66 61 6c 73 65 3b 20 20 | 0d 09 0d 09 77 68 69 6c |false; |....whil|
|00004be0| 65 20 28 6e 65 78 74 57 | 69 6e 64 6f 77 29 0d 09 |e (nextW|indow)..|
|00004bf0| 7b 0d 09 09 6e 65 78 74 | 57 69 6e 64 6f 77 20 3d |{...next|Window =|
|00004c00| 20 47 65 74 4e 65 78 74 | 57 69 6e 64 6f 77 28 6e | GetNext|Window(n|
|00004c10| 65 78 74 57 69 6e 64 6f | 77 29 3b 0d 09 09 69 66 |extWindo|w);...if|
|00004c20| 20 28 6e 65 78 74 57 69 | 6e 64 6f 77 3d 3d 77 69 | (nextWi|ndow==wi|
|00004c30| 6e 32 29 20 72 65 74 75 | 72 6e 20 74 72 75 65 3b |n2) retu|rn true;|
|00004c40| 0d 09 7d 0d 09 72 65 74 | 75 72 6e 20 66 61 6c 73 |..}..ret|urn fals|
|00004c50| 65 3b 0d 7d 0d 0d 2d 20 | 2d 2d 2d 2d 2d 2d 2d 2d |e;.}..- |--------|
|00004c60| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00004c70| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00004c80| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00004c90| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00004ca0| 0d 43 6c 61 70 2e 2e 2e | 20 48 6f 70 2e 2e 2e 2e |.Clap...| Hop....|
|00004cb0| 20 73 61 79 20 22 4b 77 | 65 65 70 61 22 2e 2e 2e | say "Kw|eepa"...|
|00004cc0| 2e 2e 0d 2d 20 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |...- ---|--------|
|00004cd0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00004ce0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00004cf0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00004d00| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 0d 0d 2b |--------|-----..+|
|00004d10| 2b 2b 2b 2b 2b 2b 2b 2b | 2b 2b 2b 2b 2b 2b 2b 2b |++++++++|++++++++|
|00004d20| 2b 2b 2b 2b 2b 2b 2b 2b | 2b 2b 0d 0d 3e 46 72 6f |++++++++|++..>Fro|
|00004d30| 6d 20 4a 6f 65 20 46 72 | 61 6e 63 69 73 20 3c 4a |m Joe Fr|ancis <J|
|00004d40| 6f 65 2e 46 72 61 6e 63 | 69 73 40 64 61 72 74 6d |oe.Franc|is@dartm|
|00004d50| 6f 75 74 68 2e 65 64 75 | 3e 0d 44 61 74 65 3a 20 |outh.edu|>.Date: |
|00004d60| 33 31 20 4d 61 79 20 31 | 39 39 34 20 31 39 3a 34 |31 May 1|994 19:4|
|00004d70| 33 3a 30 35 20 47 4d 54 | 0d 4f 72 67 61 6e 69 7a |3:05 GMT|.Organiz|
|00004d80| 61 74 69 6f 6e 3a 20 53 | 6d 6f 6f 74 68 20 52 6f |ation: S|mooth Ro|
|00004d90| 6f 20 53 6f 66 74 77 61 | 72 65 0d 0d 54 68 6f 6d |o Softwa|re..Thom|
|00004da0| 61 73 20 52 65 65 64 2c | 20 72 65 65 64 40 6d 65 |as Reed,| reed@me|
|00004db0| 64 69 63 69 6e 65 2e 77 | 75 73 74 6c 2e 65 64 75 |dicine.w|ustl.edu|
|00004dc0| 20 77 72 69 74 65 73 3a | 0d 3e 20 4f 6e 20 61 6e | writes:|.> On an|
|00004dd0| 20 61 73 69 64 65 2c 20 | 64 6f 65 73 20 61 6e 79 | aside, |does any|
|00004de0| 6f 6e 65 20 6b 6e 6f 77 | 20 69 66 20 79 6f 75 20 |one know| if you |
|00004df0| 63 61 6e 20 75 73 65 20 | 74 68 69 73 20 63 6f 64 |can use |this cod|
|00004e00| 65 20 74 6f 20 63 72 65 | 61 74 65 20 61 0d 3e 20 |e to cre|ate a.> |
|00004e10| 66 6c 6f 61 74 69 6e 67 | 20 77 69 6e 64 6f 77 20 |floating| window |
|00004e20| 74 68 61 74 20 77 69 6c | 6c 20 66 6c 6f 61 74 20 |that wil|l float |
|00004e30| 6f 76 65 72 20 41 4c 4c | 20 77 69 6e 64 6f 77 73 |over ALL| windows|
|00004e40| 20 61 74 20 41 4c 4c 20 | 74 69 6d 65 73 3f 20 20 | at ALL |times? |
|00004e50| 69 2e 65 2e 20 2d 0d 3e | 20 65 76 65 6e 20 77 68 |i.e. -.>| even wh|
|00004e60| 65 6e 20 6f 74 68 65 72 | 20 61 70 70 73 20 61 72 |en other| apps ar|
|00004e70| 65 20 69 6e 20 74 68 65 | 20 66 72 6f 6e 74 2c 20 |e in the| front, |
|00004e80| 74 68 65 20 77 69 6e 64 | 6f 77 20 77 69 6c 6c 20 |the wind|ow will |
|00004e90| 66 6c 6f 61 74 20 6f 76 | 65 72 20 41 4c 4c 0d 3e |float ov|er ALL.>|
|00004ea0| 20 77 69 6e 64 6f 77 73 | 3f 0d 0d 54 68 65 20 22 | windows|?..The "|
|00004eb0| 64 65 76 65 6c 6f 70 22 | 20 66 6c 6f 61 74 69 6e |develop"| floatin|
|00004ec0| 67 20 77 69 6e 64 6f 77 | 73 20 63 6f 64 65 20 28 |g window|s code (|
|00004ed0| 62 79 20 44 65 61 6e 20 | 59 75 29 20 61 63 68 65 |by Dean |Yu) ache|
|00004ee0| 69 76 65 73 20 69 74 27 | 73 20 66 6c 6f 61 74 69 |ives it'|s floati|
|00004ef0| 6e 67 0d 62 79 20 6a 75 | 67 67 6c 69 6e 67 20 77 |ng.by ju|ggling w|
|00004f00| 69 6e 64 6f 77 73 20 61 | 72 6f 75 6e 64 20 69 6e |indows a|round in|
|00004f10| 20 74 68 65 20 77 69 6e | 64 6f 77 20 6c 69 73 74 | the win|dow list|
|00004f20| 2e 20 20 54 68 65 20 77 | 69 6e 64 6f 77 20 6c 69 |. The w|indow li|
|00004f30| 73 74 2c 20 74 68 6f 75 | 67 68 2c 0d 69 73 20 70 |st, thou|gh,.is p|
|00004f40| 72 6f 63 65 73 73 20 73 | 70 65 63 69 66 69 63 2e |rocess s|pecific.|
|00004f50| 20 20 4f 74 68 65 72 20 | 61 70 70 6c 69 63 61 74 | Other |applicat|
|00004f60| 69 6f 6e 73 20 77 69 6e | 64 6f 77 73 20 61 72 65 |ions win|dows are|
|00004f70| 20 6e 6f 74 20 69 6e 20 | 74 68 65 20 77 69 6e 64 | not in |the wind|
|00004f80| 6f 77 0d 6c 69 73 74 20 | 79 6f 75 72 20 61 70 70 |ow.list |your app|
|00004f90| 20 73 65 65 73 20 77 68 | 65 6e 20 69 74 20 69 73 | sees wh|en it is|
|00004fa0| 20 69 6e 20 74 68 65 20 | 66 6f 72 67 72 6f 75 6e | in the |forgroun|
|00004fb0| 64 2e 20 20 53 6f 20 74 | 68 65 20 61 6e 73 77 65 |d. So t|he answe|
|00004fc0| 72 20 69 73 20 6e 6f 2c | 0d 74 68 65 20 64 65 76 |r is no,|.the dev|
|00004fd0| 65 6c 6f 70 20 63 6f 64 | 65 20 63 61 6e 20 6e 6f |elop cod|e can no|
|00004fe0| 74 20 62 65 20 75 73 65 | 64 20 74 6f 20 64 6f 20 |t be use|d to do |
|00004ff0| 77 68 61 74 20 79 6f 75 | 20 77 61 6e 74 2e 0d 0d |what you| want...|
|00005000| 2d 20 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |- ------|--------|
|00005010| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00005020| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00005030| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00005040| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 0d 4e 6f 20 6d 61 |--------|--.No ma|
|00005050| 74 74 65 72 20 68 6f 77 | 20 73 75 62 74 6c 65 20 |tter how| subtle |
|00005060| 74 68 65 20 77 69 7a 61 | 72 64 2c 20 61 20 6b 6e |the wiza|rd, a kn|
|00005070| 69 66 65 20 62 65 74 77 | 65 65 6e 20 74 68 65 20 |ife betw|een the |
|00005080| 73 68 6f 75 6c 64 65 72 | 20 62 6c 61 64 65 73 0d |shoulder| blades.|
|00005090| 77 69 6c 6c 20 73 65 72 | 69 6f 75 73 6c 79 20 63 |will ser|iously c|
|000050a0| 72 61 6d 70 20 68 69 73 | 20 73 74 79 6c 65 2e 0d |ramp his| style..|
|000050b0| 2d 20 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |- ------|--------|
|000050c0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000050d0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000050e0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000050f0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 0d 0d 2b 2b 2b 2b |--------|--..++++|
|00005100| 2b 2b 2b 2b 2b 2b 2b 2b | 2b 2b 2b 2b 2b 2b 2b 2b |++++++++|++++++++|
|00005110| 2b 2b 2b 2b 2b 2b 2b 0d | 0d 3e 46 72 6f 6d 20 6d |+++++++.|.>From m|
|00005120| 78 6d 6f 72 61 40 75 6e | 69 78 2e 73 72 69 2e 63 |xmora@un|ix.sri.c|
|00005130| 6f 6d 20 28 4d 61 74 74 | 20 4d 6f 72 61 29 0d 44 |om (Matt| Mora).D|
|00005140| 61 74 65 3a 20 31 20 4a | 75 6e 20 39 34 20 31 35 |ate: 1 J|un 94 15|
|00005150| 3a 33 34 3a 31 37 20 47 | 4d 54 0d 4f 72 67 61 6e |:34:17 G|MT.Organ|
|00005160| 69 7a 61 74 69 6f 6e 3a | 20 53 52 49 20 49 6e 74 |ization:| SRI Int|
|00005170| 65 72 6e 61 74 69 6f 6e | 61 6c 2c 20 4d 65 6e 6c |ernation|al, Menl|
|00005180| 6f 20 50 61 72 6b 2c 20 | 43 41 0d 0d 49 6e 20 61 |o Park, |CA..In a|
|00005190| 72 74 69 63 6c 65 20 3c | 31 39 39 34 4d 61 79 33 |rticle <|1994May3|
|000051a0| 31 2e 31 39 31 37 33 35 | 2e 31 30 39 35 39 40 67 |1.191735|.10959@g|
|000051b0| 61 6c 6c 61 6e 74 2e 61 | 70 70 6c 65 2e 63 6f 6d |allant.a|pple.com|
|000051c0| 3e 20 4a 65 6e 73 20 41 | 6c 66 6b 65 20 3c 6a 65 |> Jens A|lfke <je|
|000051d0| 6e 73 5f 61 6c 66 6b 65 | 40 70 6f 77 65 72 74 61 |ns_alfke|@powerta|
|000051e0| 6c 6b 2e 61 70 70 6c 65 | 2e 63 6f 6d 3e 20 77 72 |lk.apple|.com> wr|
|000051f0| 69 74 65 73 3a 0d 3e 54 | 68 6f 6d 61 73 20 52 65 |ites:.>T|homas Re|
|00005200| 65 64 2c 20 72 65 65 64 | 40 6d 65 64 69 63 69 6e |ed, reed|@medicin|
|00005210| 65 2e 77 75 73 74 6c 2e | 65 64 75 20 77 72 69 74 |e.wustl.|edu writ|
|00005220| 65 73 3a 0d 0d 3e 4e 65 | 65 64 6c 65 73 73 20 74 |es:..>Ne|edless t|
|00005230| 6f 20 73 61 79 20 49 27 | 64 20 72 65 63 6f 6d 6d |o say I'|d recomm|
|00005240| 65 6e 64 20 28 41 29 2c | 20 65 76 65 6e 20 74 68 |end (A),| even th|
|00005250| 6f 75 67 68 20 49 20 68 | 65 61 72 20 74 68 65 72 |ough I h|ear ther|
|00005260| 65 20 61 72 65 20 73 6f | 6d 65 20 77 65 69 72 64 |e are so|me weird|
|00005270| 0d 3e 69 73 73 75 65 73 | 20 61 73 73 6f 63 69 61 |.>issues| associa|
|00005280| 74 65 64 20 77 69 74 68 | 20 72 75 6e 6e 69 6e 67 |ted with| running|
|00005290| 20 54 53 4d 20 77 69 6e | 64 6f 77 73 2e 20 44 6f | TSM win|dows. Do|
|000052a0| 6e 61 6c 64 20 42 72 6f | 77 6e 20 6f 66 20 43 45 |nald Bro|wn of CE|
|000052b0| 20 53 6f 66 74 77 61 72 | 65 20 77 72 6f 74 65 0d | Softwar|e wrote.|
|000052c0| 3e 61 20 6c 69 74 74 6c | 65 20 64 65 6d 6f 20 61 |>a littl|e demo a|
|000052d0| 70 70 20 74 68 61 74 20 | 64 6f 65 73 20 74 68 69 |pp that |does thi|
|000052e0| 73 20 66 6f 72 20 6c 61 | 73 74 20 79 65 61 72 73 |s for la|st years|
|000052f0| 27 20 4d 61 63 48 61 63 | 6b 3b 20 70 65 72 68 61 |' MacHac|k; perha|
|00005300| 70 73 20 74 68 65 20 73 | 6f 75 72 63 65 0d 3e 63 |ps the s|ource.>c|
|00005310| 6f 64 65 20 69 73 20 61 | 72 6f 75 6e 64 20 73 6f |ode is a|round so|
|00005320| 6d 65 77 68 65 72 65 2e | 0d 0d 0d 4d 61 74 74 20 |mewhere.|...Matt |
|00005330| 53 6c 6f 74 20 6a 75 73 | 74 20 70 6f 73 74 65 64 |Slot jus|t posted|
|00005340| 20 73 6f 6d 65 20 63 6f | 64 65 20 74 6f 20 64 6f | some co|de to do|
|00005350| 20 74 68 65 20 66 6c 6f | 61 74 69 6e 67 20 77 69 | the flo|ating wi|
|00005360| 6e 64 6f 77 73 20 73 74 | 75 66 66 20 74 6f 20 0d |ndows st|uff to .|
|00005370| 61 2e 73 2e 6d 2e 0d 0d | 0d 58 61 76 69 65 72 0d |a.s.m...|.Xavier.|
|00005380| 0d 0d 2d 2d 20 0d 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |..-- .__|________|
|00005390| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|000053a0| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|000053b0| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|000053c0| 5f 0d 4d 61 74 74 68 65 | 77 20 58 61 76 69 65 72 |_.Matthe|w Xavier|
|000053d0| 20 4d 6f 72 61 20 20 20 | 20 20 20 20 20 20 20 20 | Mora | |
|000053e0| 20 20 20 20 20 20 20 20 | 20 20 20 20 4d 61 74 74 | | Matt|
|000053f0| 5f 4d 6f 72 61 40 73 72 | 69 2e 63 6f 6d 0d 53 52 |_Mora@sr|i.com.SR|
|00005400| 49 20 49 6e 74 65 72 6e | 61 74 69 6f 6e 61 6c 20 |I Intern|ational |
|00005410| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005420| 20 20 20 20 20 20 6d 78 | 6d 6f 72 61 40 75 6e 69 | mx|mora@uni|
|00005430| 78 2e 73 72 69 2e 63 6f | 6d 0d 33 33 33 20 52 61 |x.sri.co|m.333 Ra|
|00005440| 76 65 6e 73 77 6f 6f 64 | 20 41 76 65 20 20 20 20 |venswood| Ave |
|00005450| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005460| 4d 65 6e 6c 6f 20 50 61 | 72 6b 2c 20 43 41 2e 20 |Menlo Pa|rk, CA. |
|00005470| 39 34 30 32 35 0d 0d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |94025..-|--------|
|00005480| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00005490| 2d 2d 0d 0d 3e 46 72 6f | 6d 20 64 75 62 6f 69 73 |--..>Fro|m dubois|
|000054a0| 40 75 61 6b 61 72 69 2e | 70 72 69 6d 61 74 65 2e |@uakari.|primate.|
|000054b0| 77 69 73 63 2e 65 64 75 | 20 28 50 61 75 6c 20 44 |wisc.edu| (Paul D|
|000054c0| 75 42 6f 69 73 29 0d 53 | 75 62 6a 65 63 74 3a 20 |uBois).S|ubject: |
|000054d0| 44 65 74 65 63 74 69 6e | 67 20 55 6e 69 76 65 72 |Detectin|g Univer|
|000054e0| 73 61 6c 20 48 65 61 64 | 65 72 73 3f 0d 44 61 74 |sal Head|ers?.Dat|
|000054f0| 65 3a 20 31 33 20 4d 61 | 79 20 31 39 39 34 20 30 |e: 13 Ma|y 1994 0|
|00005500| 39 3a 35 39 3a 35 33 20 | 2d 30 35 30 30 0d 4f 72 |9:59:53 |-0500.Or|
|00005510| 67 61 6e 69 7a 61 74 69 | 6f 6e 3a 20 43 61 73 74 |ganizati|on: Cast|
|00005520| 72 61 20 50 61 72 76 75 | 6c 6f 72 75 6d 0d 0d 49 |ra Parvu|lorum..I|
|00005530| 73 20 74 68 65 72 65 20 | 61 20 77 61 79 20 49 20 |s there |a way I |
|00005540| 63 61 6e 20 74 65 6c 6c | 20 77 68 65 74 68 65 72 |can tell| whether|
|00005550| 20 74 68 65 20 75 6e 69 | 76 65 72 73 61 6c 20 68 | the uni|versal h|
|00005560| 65 61 64 65 72 73 20 61 | 72 65 20 62 65 69 6e 67 |eaders a|re being|
|00005570| 0d 75 73 65 64 2c 20 65 | 2e 67 2e 2c 20 74 6f 20 |.used, e|.g., to |
|00005580| 64 6f 20 74 68 69 73 3a | 0d 0d 23 69 66 20 75 6e |do this:|..#if un|
|00005590| 69 76 65 72 73 61 6c 68 | 65 61 64 65 72 73 0d 09 |iversalh|eaders..|
|000055a0| 64 6f 20 74 68 69 73 0d | 23 65 6c 73 65 0d 09 64 |do this.|#else..d|
|000055b0| 6f 20 74 68 69 73 20 69 | 6e 73 74 65 61 64 0d 23 |o this i|nstead.#|
|000055c0| 65 6e 64 69 66 0d 0d 2d | 2d 20 0d 50 61 75 6c 20 |endif..-|- .Paul |
|000055d0| 44 75 42 6f 69 73 0d 64 | 75 62 6f 69 73 40 70 72 |DuBois.d|ubois@pr|
|000055e0| 69 6d 61 74 65 2e 77 69 | 73 63 2e 65 64 75 0d 0d |imate.wi|sc.edu..|
|000055f0| 2b 2b 2b 2b 2b 2b 2b 2b | 2b 2b 2b 2b 2b 2b 2b 2b |++++++++|++++++++|
|00005600| 2b 2b 2b 2b 2b 2b 2b 2b | 2b 2b 2b 0d 0d 3e 46 72 |++++++++|+++..>Fr|
|00005610| 6f 6d 20 64 6d 67 40 64 | 63 73 2e 65 64 2e 61 63 |om dmg@d|cs.ed.ac|
|00005620| 2e 75 6b 20 28 44 6f 6d | 69 6e 69 6b 20 47 61 6d |.uk (Dom|inik Gam|
|00005630| 62 6c 65 29 0d 44 61 74 | 65 3a 20 4d 6f 6e 2c 20 |ble).Dat|e: Mon, |
|00005640| 31 36 20 4d 61 79 20 31 | 39 39 34 20 31 33 3a 35 |16 May 1|994 13:5|
|00005650| 38 3a 30 38 20 47 4d 54 | 0d 4f 72 67 61 6e 69 7a |8:08 GMT|.Organiz|
|00005660| 61 74 69 6f 6e 3a 20 44 | 65 70 61 72 74 6d 65 6e |ation: D|epartmen|
|00005670| 74 20 6f 66 20 43 6f 6d | 70 75 74 65 72 20 53 63 |t of Com|puter Sc|
|00005680| 69 65 6e 63 65 2c 20 55 | 6e 69 76 65 72 73 69 74 |ience, U|niversit|
|00005690| 79 20 6f 66 20 45 64 69 | 6e 62 75 72 67 68 0d 0d |y of Edi|nburgh..|
|000056a0| 49 6e 20 61 72 74 69 63 | 6c 65 20 3c 32 72 30 34 |In artic|le <2r04|
|000056b0| 6c 39 49 4e 4e 31 72 39 | 40 75 61 6b 61 72 69 2e |l9INN1r9|@uakari.|
|000056c0| 70 72 69 6d 61 74 65 2e | 77 69 73 63 2e 65 64 75 |primate.|wisc.edu|
|000056d0| 3e 2c 20 64 75 62 6f 69 | 73 40 75 61 6b 61 72 69 |>, duboi|s@uakari|
|000056e0| 2e 70 72 69 6d 61 74 65 | 2e 77 69 73 63 2e 65 64 |.primate|.wisc.ed|
|000056f0| 75 20 28 50 61 75 6c 20 | 44 75 42 6f 69 73 29 20 |u (Paul |DuBois) |
|00005700| 77 72 69 74 65 73 3a 0d | 3e 20 49 73 20 74 68 65 |writes:.|> Is the|
|00005710| 72 65 20 61 20 77 61 79 | 20 49 20 63 61 6e 20 74 |re a way| I can t|
|00005720| 65 6c 6c 20 77 68 65 74 | 68 65 72 20 74 68 65 20 |ell whet|her the |
|00005730| 75 6e 69 76 65 72 73 61 | 6c 20 68 65 61 64 65 72 |universa|l header|
|00005740| 73 20 61 72 65 20 62 65 | 69 6e 67 0d 3e 20 75 73 |s are be|ing.> us|
|00005750| 65 64 2c 20 65 2e 67 2e | 2c 20 74 6f 20 64 6f 20 |ed, e.g.|, to do |
|00005760| 74 68 69 73 3a 0d 3e 20 | 0d 3e 20 23 69 66 20 75 |this:.> |.> #if u|
|00005770| 6e 69 76 65 72 73 61 6c | 68 65 61 64 65 72 73 0d |niversal|headers.|
|00005780| 3e 20 09 64 6f 20 74 68 | 69 73 0d 3e 20 23 65 6c |> .do th|is.> #el|
|00005790| 73 65 0d 3e 20 09 64 6f | 20 74 68 69 73 20 69 6e |se.> .do| this in|
|000057a0| 73 74 65 61 64 0d 3e 20 | 23 65 6e 64 69 66 0d 0d |stead.> |#endif..|
|000057b0| 41 73 20 66 61 72 20 61 | 73 20 49 20 6b 6e 6f 77 |As far a|s I know|
|000057c0| 2c 0d 0d 23 69 66 64 65 | 66 20 55 53 45 53 36 38 |,..#ifde|f USES68|
|000057d0| 4b 49 4e 4c 49 4e 45 53 | 0d 09 2f 2a 20 75 6e 69 |KINLINES|../* uni|
|000057e0| 76 65 72 73 61 6c 20 68 | 65 61 64 65 72 73 20 70 |versal h|eaders p|
|000057f0| 72 65 73 65 6e 74 20 2a | 2f 0d 23 65 6c 73 65 0d |resent *|/.#else.|
|00005800| 09 2f 2a 20 75 6e 69 76 | 65 72 73 61 6c 20 68 65 |./* univ|ersal he|
|00005810| 61 64 65 72 73 20 61 62 | 73 65 6e 74 20 2a 2f 0d |aders ab|sent */.|
|00005820| 23 65 6e 64 69 66 0d 0d | 73 68 6f 75 6c 64 20 77 |#endif..|should w|
|00005830| 6f 72 6b 2e 20 28 41 74 | 20 6c 65 61 73 74 20 61 |ork. (At| least a|
|00005840| 73 20 66 61 72 20 61 73 | 20 79 6f 75 20 6b 6e 6f |s far as| you kno|
|00005850| 77 20 79 6f 75 20 61 72 | 65 20 63 6f 6d 70 69 6c |w you ar|e compil|
|00005860| 69 6e 67 0d 66 6f 72 20 | 61 20 36 38 30 78 30 29 |ing.for |a 680x0)|
|00005870| 2e 0d 0d 0d 2b 2b 2b 2b | 2b 2b 2b 2b 2b 2b 2b 2b |....++++|++++++++|
|00005880| 2b 2b 2b 2b 2b 2b 2b 2b | 2b 2b 2b 2b 2b 2b 2b 0d |++++++++|+++++++.|
|00005890| 0d 3e 46 72 6f 6d 20 64 | 65 61 6e 40 67 65 6e 6d |.>From d|ean@genm|
|000058a0| 61 67 69 63 2e 63 6f 6d | 20 28 44 65 61 6e 20 59 |agic.com| (Dean Y|
|000058b0| 75 29 0d 44 61 74 65 3a | 20 31 38 20 4d 61 79 20 |u).Date:| 18 May |
|000058c0| 31 39 39 34 20 31 38 3a | 30 31 3a 35 37 20 47 4d |1994 18:|01:57 GM|
|000058d0| 54 0d 4f 72 67 61 6e 69 | 7a 61 74 69 6f 6e 3a 20 |T.Organi|zation: |
|000058e0| 47 65 6e 65 72 61 6c 20 | 4d 61 67 69 63 2c 20 49 |General |Magic, I|
|000058f0| 6e 63 2e 0d 0d 49 6e 20 | 61 72 74 69 63 6c 65 20 |nc...In |article |
|00005900| 3c 43 70 77 45 73 78 2e | 34 7a 7a 40 64 63 73 2e |<CpwEsx.|4zz@dcs.|
|00005910| 65 64 2e 61 63 2e 75 6b | 3e 2c 20 64 6d 67 40 64 |ed.ac.uk|>, dmg@d|
|00005920| 63 73 2e 65 64 2e 61 63 | 2e 75 6b 20 28 44 6f 6d |cs.ed.ac|.uk (Dom|
|00005930| 69 6e 69 6b 20 47 61 6d | 62 6c 65 29 0d 77 72 6f |inik Gam|ble).wro|
|00005940| 74 65 3a 0d 0d 3e 20 49 | 6e 20 61 72 74 69 63 6c |te:..> I|n articl|
|00005950| 65 20 3c 32 72 30 34 6c | 39 49 4e 4e 31 72 39 40 |e <2r04l|9INN1r9@|
|00005960| 75 61 6b 61 72 69 2e 70 | 72 69 6d 61 74 65 2e 77 |uakari.p|rimate.w|
|00005970| 69 73 63 2e 65 64 75 3e | 2c 20 64 75 62 6f 69 73 |isc.edu>|, dubois|
|00005980| 40 75 61 6b 61 72 69 2e | 70 72 69 6d 61 74 65 2e |@uakari.|primate.|
|00005990| 77 69 73 63 2e 65 64 75 | 20 28 50 61 75 6c 20 44 |wisc.edu| (Paul D|
|000059a0| 75 42 6f 69 73 29 20 77 | 72 69 74 65 73 3a 0d 3e |uBois) w|rites:.>|
|000059b0| 20 3e 20 49 73 20 74 68 | 65 72 65 20 61 20 77 61 | > Is th|ere a wa|
|000059c0| 79 20 49 20 63 61 6e 20 | 74 65 6c 6c 20 77 68 65 |y I can |tell whe|
|000059d0| 74 68 65 72 20 74 68 65 | 20 75 6e 69 76 65 72 73 |ther the| univers|
|000059e0| 61 6c 20 68 65 61 64 65 | 72 73 20 61 72 65 20 62 |al heade|rs are b|
|000059f0| 65 69 6e 67 0d 3e 20 3e | 20 75 73 65 64 2c 20 65 |eing.> >| used, e|
|00005a00| 2e 67 2e 2c 20 74 6f 20 | 64 6f 20 74 68 69 73 3a |.g., to |do this:|
|00005a10| 0d 3e 20 3e 20 0d 3e 20 | 3e 20 23 69 66 20 75 6e |.> > .> |> #if un|
|00005a20| 69 76 65 72 73 61 6c 68 | 65 61 64 65 72 73 0d 3e |iversalh|eaders.>|
|00005a30| 20 3e 20 09 64 6f 20 74 | 68 69 73 0d 3e 20 3e 20 | > .do t|his.> > |
|00005a40| 23 65 6c 73 65 0d 3e 20 | 3e 20 09 64 6f 20 74 68 |#else.> |> .do th|
|00005a50| 69 73 20 69 6e 73 74 65 | 61 64 0d 3e 20 3e 20 23 |is inste|ad.> > #|
|00005a60| 65 6e 64 69 66 0d 3e 20 | 0d 3e 20 41 73 20 66 61 |endif.> |.> As fa|
|00005a70| 72 20 61 73 20 49 20 6b | 6e 6f 77 2c 0d 3e 20 0d |r as I k|now,.> .|
|00005a80| 3e 20 23 69 66 64 65 66 | 20 55 53 45 53 36 38 4b |> #ifdef| USES68K|
|00005a90| 49 4e 4c 49 4e 45 53 0d | 3e 20 09 2f 2a 20 75 6e |INLINES.|> ./* un|
|00005aa0| 69 76 65 72 73 61 6c 20 | 68 65 61 64 65 72 73 20 |iversal |headers |
|00005ab0| 70 72 65 73 65 6e 74 20 | 2a 2f 0d 3e 20 23 65 6c |present |*/.> #el|
|00005ac0| 73 65 0d 3e 20 09 2f 2a | 20 75 6e 69 76 65 72 73 |se.> ./*| univers|
|00005ad0| 61 6c 20 68 65 61 64 65 | 72 73 20 61 62 73 65 6e |al heade|rs absen|
|00005ae0| 74 20 2a 2f 0d 3e 20 23 | 65 6e 64 69 66 0d 3e 20 |t */.> #|endif.> |
|00005af0| 0d 0d 20 20 54 68 69 73 | 20 77 69 6c 6c 20 77 6f |.. This| will wo|
|00005b00| 72 6b 20 66 6f 72 20 6e | 6f 77 2c 20 62 75 74 20 |rk for n|ow, but |
|00005b10| 55 53 45 53 36 38 4b 49 | 4e 4c 49 4e 45 53 20 77 |USES68KI|NLINES w|
|00005b20| 61 73 20 6d 65 61 6e 74 | 20 74 6f 20 6d 65 61 6e |as meant| to mean|
|00005b30| 20 74 68 61 74 20 73 79 | 73 74 65 6d 0d 73 6f 66 | that sy|stem.sof|
|00005b40| 74 77 61 72 65 20 70 72 | 6f 74 6f 74 79 70 65 73 |tware pr|ototypes|
|00005b50| 20 61 72 65 20 64 65 66 | 69 6e 65 64 20 75 73 69 | are def|ined usi|
|00005b60| 6e 67 20 69 6e 6c 69 6e | 65 64 20 36 38 30 78 30 |ng inlin|ed 680x0|
|00005b70| 20 69 6e 73 74 72 75 63 | 74 69 6f 6e 73 20 28 6c | instruc|tions (l|
|00005b80| 69 6b 65 0d 41 2d 54 72 | 61 70 73 2c 20 61 6e 64 |ike.A-Tr|aps, and|
|00005b90| 20 70 6f 73 73 69 62 6c | 65 20 73 6f 6d 65 20 72 | possibl|e some r|
|00005ba0| 65 67 69 73 74 65 72 20 | 6d 6f 76 69 6e 67 20 69 |egister |moving i|
|00005bb0| 6e 73 74 72 75 63 74 69 | 6f 6e 73 29 2e 20 49 66 |nstructi|ons). If|
|00005bc0| 20 41 70 70 6c 65 20 65 | 76 65 72 0d 6d 6f 76 65 | Apple e|ver.move|
|00005bd0| 73 20 74 68 65 20 73 79 | 73 74 65 6d 20 6f 76 65 |s the sy|stem ove|
|00005be0| 72 20 74 6f 20 73 68 61 | 72 65 64 20 6c 69 62 72 |r to sha|red libr|
|00005bf0| 61 72 69 65 73 2c 20 74 | 68 65 6e 20 55 53 45 53 |aries, t|hen USES|
|00005c00| 36 38 4b 49 4e 4c 49 4e | 45 53 20 77 6f 75 6c 64 |68KINLIN|ES would|
|00005c10| 20 62 65 20 30 2c 0d 65 | 76 65 6e 20 74 68 6f 75 | be 0,.e|ven thou|
|00005c20| 67 68 20 55 6e 69 76 65 | 72 73 61 6c 20 68 65 61 |gh Unive|rsal hea|
|00005c30| 64 65 72 73 20 6d 69 67 | 68 74 20 62 65 20 70 72 |ders mig|ht be pr|
|00005c40| 65 73 65 6e 74 2e 0d 20 | 20 4f 68 2c 20 77 61 69 |esent.. | Oh, wai|
|00005c50| 74 2e 20 59 6f 75 20 75 | 73 65 64 20 23 69 66 64 |t. You u|sed #ifd|
|00005c60| 65 66 2c 20 6e 6f 74 20 | 23 69 66 2e 20 4e 65 76 |ef, not |#if. Nev|
|00005c70| 65 72 20 6d 69 6e 64 2e | 0d 20 20 41 74 20 61 6e |er mind.|. At an|
|00005c80| 79 20 72 61 74 65 2c 20 | 74 68 65 20 55 6e 69 76 |y rate, |the Univ|
|00005c90| 65 72 73 61 6c 20 48 65 | 61 64 65 72 73 20 63 6f |ersal He|aders co|
|00005ca0| 6d 65 73 20 77 69 74 68 | 20 61 20 66 69 6c 65 20 |mes with| a file |
|00005cb0| 63 61 6c 6c 65 64 0d 43 | 6f 6e 64 69 74 69 6f 6e |called.C|ondition|
|00005cc0| 61 6c 4d 61 63 72 6f 73 | 2e 68 2c 20 77 68 69 63 |alMacros|.h, whic|
|00005cd0| 68 20 68 61 73 20 61 6c | 6c 20 74 68 65 20 63 6f |h has al|l the co|
|00005ce0| 6d 70 69 6c 65 20 74 69 | 6d 65 20 73 77 69 74 63 |mpile ti|me switc|
|00005cf0| 68 65 73 20 74 68 61 74 | 20 6d 61 6b 65 73 20 74 |hes that| makes t|
|00005d00| 68 65 0d 68 65 61 64 65 | 72 73 20 75 6e 69 76 65 |he.heade|rs unive|
|00005d10| 72 73 61 6c 2e 20 49 20 | 63 61 6e 27 74 20 72 65 |rsal. I |can't re|
|00005d20| 6d 65 6d 62 65 72 20 69 | 66 20 61 6e 79 74 68 69 |member i|f anythi|
|00005d30| 6e 67 20 73 70 65 63 69 | 66 69 63 61 6c 6c 79 20 |ng speci|fically |
|00005d40| 61 62 6f 75 74 0d 75 6e | 69 76 65 72 73 61 6c 20 |about.un|iversal |
|00005d50| 68 65 61 64 72 65 73 20 | 77 61 73 20 64 65 66 69 |headres |was defi|
|00005d60| 6e 65 64 20 69 6e 20 74 | 68 65 72 65 2c 20 62 75 |ned in t|here, bu|
|00005d70| 74 20 74 68 61 74 27 73 | 20 74 68 65 20 70 6c 61 |t that's| the pla|
|00005d80| 63 65 20 74 6f 20 6c 6f | 6f 6b 2e 0d 0d 2d 2d 20 |ce to lo|ok...-- |
|00005d90| 44 65 61 6e 20 59 75 0d | 20 20 20 4e 65 67 61 74 |Dean Yu.| Negat|
|00005da0| 69 76 65 20 45 74 68 6e | 69 63 20 52 6f 6c 65 20 |ive Ethn|ic Role |
|00005db0| 4d 6f 64 65 6c 0d 20 20 | 20 47 65 6e 65 72 61 6c |Model. | General|
|00005dc0| 20 4d 61 67 69 63 2c 20 | 49 6e 63 2e 0d 0d 2b 2b | Magic, |Inc...++|
|00005dd0| 2b 2b 2b 2b 2b 2b 2b 2b | 2b 2b 2b 2b 2b 2b 2b 2b |++++++++|++++++++|
|00005de0| 2b 2b 2b 2b 2b 2b 2b 2b | 2b 0d 0d 3e 46 72 6f 6d |++++++++|+..>From|
|00005df0| 20 74 64 65 76 6f 6e 40 | 61 6f 6c 2e 63 6f 6d 20 | tdevon@|aol.com |
|00005e00| 28 54 44 65 76 6f 6e 29 | 0d 44 61 74 65 3a 20 33 |(TDevon)|.Date: 3|
|00005e10| 30 20 4d 61 79 20 31 39 | 39 34 20 30 34 3a 35 37 |0 May 19|94 04:57|
|00005e20| 3a 30 32 20 2d 30 34 30 | 30 0d 4f 72 67 61 6e 69 |:02 -040|0.Organi|
|00005e30| 7a 61 74 69 6f 6e 3a 20 | 41 6d 65 72 69 63 61 20 |zation: |America |
|00005e40| 4f 6e 6c 69 6e 65 2c 20 | 49 6e 63 2e 20 28 31 2d |Online, |Inc. (1-|
|00005e50| 38 30 30 2d 38 32 37 2d | 36 33 36 34 29 0d 0d 49 |800-827-|6364)..I|
|00005e60| 6e 20 61 72 74 69 63 6c | 65 20 3c 64 65 61 6e 2d |n articl|e <dean-|
|00005e70| 31 38 30 35 39 34 31 30 | 35 37 34 36 40 64 65 61 |18059410|5746@dea|
|00005e80| 6e 5f 79 75 2e 67 65 6e | 6d 61 67 69 63 2e 63 6f |n_yu.gen|magic.co|
|00005e90| 6d 3e 2c 0d 64 65 61 6e | 40 67 65 6e 6d 61 67 69 |m>,.dean|@genmagi|
|00005ea0| 63 2e 63 6f 6d 20 28 44 | 65 61 6e 20 59 75 29 20 |c.com (D|ean Yu) |
|00005eb0| 77 72 69 74 65 73 3a 0d | 0d 49 27 76 65 20 62 65 |writes:.|.I've be|
|00005ec0| 65 6e 20 75 73 69 6e 67 | 20 23 69 66 64 65 66 27 |en using| #ifdef'|
|00005ed0| 73 20 77 69 74 68 20 27 | 55 53 45 53 52 4f 55 54 |s with '|USESROUT|
|00005ee0| 49 4e 45 44 45 53 43 52 | 49 50 54 4f 52 53 27 20 |INEDESCR|IPTORS' |
|00005ef0| 62 75 74 20 79 6f 75 20 | 63 6f 75 6c 64 0d 63 68 |but you |could.ch|
|00005f00| 65 63 6b 20 66 6f 72 20 | 27 5f 5f 4d 49 58 45 44 |eck for |'__MIXED|
|00005f10| 4d 4f 44 45 5f 5f 27 20 | 61 73 20 77 65 6c 6c 20 |MODE__' |as well |
|00005f20| 73 69 6e 63 65 20 74 68 | 61 74 20 66 69 6c 65 20 |since th|at file |
|00005f30| 6f 6e 6c 79 20 65 78 69 | 73 74 73 20 69 6e 20 74 |only exi|sts in t|
|00005f40| 68 65 0d 55 6e 69 76 65 | 72 73 61 6c 20 48 65 61 |he.Unive|rsal Hea|
|00005f50| 64 65 72 73 2e 20 20 53 | 75 63 68 20 61 20 73 68 |ders. S|uch a sh|
|00005f60| 61 6d 65 20 74 68 61 74 | 20 41 70 70 6c 65 20 77 |ame that| Apple w|
|00005f70| 65 6e 74 20 74 6f 20 61 | 6c 6c 20 74 68 65 20 77 |ent to a|ll the w|
|00005f80| 6f 72 6b 20 69 6e 0d 63 | 72 65 61 74 69 6e 67 20 |ork in.c|reating |
|00005f90| 74 68 65 20 55 6e 69 76 | 65 72 73 61 6c 20 48 65 |the Univ|ersal He|
|00005fa0| 61 64 65 72 73 20 61 6e | 64 20 74 68 65 79 20 64 |aders an|d they d|
|00005fb0| 69 64 6e 27 74 20 67 69 | 76 65 20 75 73 20 64 65 |idn't gi|ve us de|
|00005fc0| 66 69 6e 65 64 20 77 61 | 79 20 74 6f 0d 64 65 74 |fined wa|y to.det|
|00005fd0| 65 63 74 20 77 68 65 74 | 68 65 72 20 74 68 65 79 |ect whet|her they|
|00005fe0| 20 77 65 72 65 20 70 72 | 65 73 65 6e 74 20 6f 72 | were pr|esent or|
|00005ff0| 20 6e 6f 74 2e 20 20 73 | 6c 61 70 2c 20 73 6c 61 | not. s|lap, sla|
|00006000| 70 21 0d 0d 64 45 56 6f | 4e 0d 0d 2d 2d 2d 2d 2d |p!..dEVo|N..-----|
|00006010| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00006020| 2d 2d 2d 2d 2d 2d 0d 0d | 3e 46 72 6f 6d 20 41 64 |------..|>From Ad|
|00006030| 72 69 61 6e 20 43 20 52 | 75 69 67 72 6f 6b 20 3c |rian C R|uigrok <|
|00006040| 61 64 72 69 61 6e 72 40 | 77 69 6d 73 65 79 2e 63 |adrianr@|wimsey.c|
|00006050| 6f 6d 3e 0d 53 75 62 6a | 65 63 74 3a 20 45 6e 75 |om>.Subj|ect: Enu|
|00006060| 6d 65 72 61 74 69 6e 67 | 20 6d 65 73 73 61 67 65 |merating| message|
|00006070| 73 20 66 72 6f 6d 20 50 | 6f 77 65 72 54 61 6c 6b |s from P|owerTalk|
|00006080| 0d 44 61 74 65 3a 20 32 | 36 20 4d 61 79 20 31 39 |.Date: 2|6 May 19|
|00006090| 39 34 20 32 33 3a 31 32 | 3a 31 33 20 47 4d 54 0d |94 23:12|:13 GMT.|
|000060a0| 4f 72 67 61 6e 69 7a 61 | 74 69 6f 6e 3a 20 52 75 |Organiza|tion: Ru|
|000060b0| 69 67 72 6f 6b 20 49 6e | 6e 6f 76 61 74 69 6f 6e |igrok In|novation|
|000060c0| 73 20 49 6e 63 2e 0d 0d | 48 61 73 20 61 6e 79 6f |s Inc...|Has anyo|
|000060d0| 6e 65 20 66 69 67 75 72 | 65 64 20 6f 75 74 20 68 |ne figur|ed out h|
|000060e0| 6f 77 20 74 6f 20 65 6e | 75 6d 65 72 61 74 65 20 |ow to en|umerate |
|000060f0| 41 4f 43 45 20 66 6f 6c | 64 65 72 3f 0d 0d 54 68 |AOCE fol|der?..Th|
|00006100| 65 20 64 6f 63 75 6d 65 | 6e 74 61 74 69 6f 6e 20 |e docume|ntation |
|00006110| 73 65 65 6d 73 20 74 6f | 20 69 6d 70 6c 79 20 74 |seems to| imply t|
|00006120| 68 61 74 20 61 6c 6c 20 | 79 6f 75 20 63 61 6e 20 |hat all |you can |
|00006130| 64 6f 0d 69 73 20 6f 70 | 65 6e 20 61 20 6c 65 74 |do.is op|en a let|
|00006140| 74 65 72 20 74 68 61 74 | 20 77 61 73 20 70 61 73 |ter that| was pas|
|00006150| 73 65 64 20 74 6f 20 79 | 6f 75 20 77 68 65 6e 20 |sed to y|ou when |
|00006160| 73 6f 6d 65 6f 6e 65 20 | 0d 64 6f 75 62 6c 65 20 |someone |.double |
|00006170| 63 6c 69 63 6b 65 64 20 | 6f 6e 20 69 74 20 69 6e |clicked |on it in|
|00006180| 20 74 68 65 20 63 6f 6d | 70 6f 75 6e 64 20 6d 61 | the com|pound ma|
|00006190| 69 6c 62 6f 78 2e 20 20 | 59 6f 75 20 63 61 6e 0d |ilbox. |You can.|
|000061a0| 61 6c 73 6f 20 67 65 74 | 20 74 68 65 20 6e 65 78 |also get| the nex|
|000061b0| 74 20 75 6e 72 65 61 64 | 20 6c 65 74 74 65 72 20 |t unread| letter |
|000061c0| 69 6e 20 74 68 65 20 6d | 61 69 6c 62 6f 78 2e 0d |in the m|ailbox..|
|000061d0| 0d 42 75 74 20 68 6f 77 | 20 64 6f 20 79 6f 75 20 |.But how| do you |
|000061e0| 67 6f 20 62 61 63 6b 20 | 74 68 65 20 74 68 65 20 |go back |the the |
|000061f0| 70 72 65 76 69 6f 75 73 | 20 6d 65 73 73 61 67 65 |previous| message|
|00006200| 2e 20 20 4f 72 0d 65 76 | 65 6e 20 6d 6f 72 65 20 |. Or.ev|en more |
|00006210| 69 6e 76 6f 6c 76 65 64 | 2c 20 68 6f 77 20 63 6f |involved|, how co|
|00006220| 75 6c 64 20 79 6f 75 20 | 73 68 6f 77 20 74 68 65 |uld you |show the|
|00006230| 20 75 73 65 72 20 61 20 | 6c 69 73 74 0d 6f 66 20 | user a |list.of |
|00006240| 6d 65 73 73 61 67 65 73 | 20 69 6e 20 74 68 65 20 |messages| in the |
|00006250| 63 6f 6d 70 6f 75 6e 64 | 20 6d 61 69 6c 62 6f 78 |compound| mailbox|
|00006260| 3a 20 20 42 6f 74 68 20 | 74 68 65 20 69 6e 62 6f |: Both |the inbo|
|00006270| 78 20 61 6e 64 0d 74 68 | 65 20 6f 75 74 62 6f 78 |x and.th|e outbox|
|00006280| 2e 0d 0d 49 74 20 6c 6f | 6f 6b 73 20 6c 69 6b 65 |...It lo|oks like|
|00006290| 20 74 68 65 20 77 61 79 | 20 74 6f 20 64 6f 20 69 | the way| to do i|
|000062a0| 74 20 69 73 20 77 69 74 | 68 20 74 68 65 20 4c 65 |t is wit|h the Le|
|000062b0| 74 74 65 72 53 70 65 63 | 2c 20 62 75 74 20 0d 74 |tterSpec|, but .t|
|000062c0| 68 65 20 64 6f 63 73 20 | 73 61 79 20 74 68 61 74 |he docs |say that|
|000062d0| 20 73 74 72 75 63 74 75 | 72 65 20 69 73 20 70 72 | structu|re is pr|
|000062e0| 69 76 61 74 65 20 61 6e | 64 20 74 68 65 72 65 20 |ivate an|d there |
|000062f0| 61 72 65 20 6e 6f 0d 66 | 75 6e 63 74 69 6f 6e 73 |are no.f|unctions|
|00006300| 20 74 6f 20 68 65 6c 70 | 20 79 6f 75 20 63 72 65 | to help| you cre|
|00006310| 61 74 65 20 6f 6e 65 2e | 0d 0d 50 65 72 68 61 70 |ate one.|..Perhap|
|00006320| 73 20 74 68 65 20 61 6e | 73 77 65 72 20 69 73 20 |s the an|swer is |
|00006330| 74 68 61 74 20 79 6f 75 | 20 73 68 6f 75 6c 64 20 |that you| should |
|00006340| 6e 6f 74 20 62 65 20 63 | 72 65 61 74 69 6e 67 20 |not be c|reating |
|00006350| 61 20 6c 69 73 74 0d 6f | 66 20 6c 65 74 74 65 72 |a list.o|f letter|
|00006360| 73 2c 20 62 75 74 20 74 | 6f 20 68 61 76 65 20 74 |s, but t|o have t|
|00006370| 6f 20 67 6f 20 62 61 63 | 6b 20 74 68 65 20 74 68 |o go bac|k the th|
|00006380| 65 20 66 69 6e 64 65 72 | 20 65 76 65 72 79 20 74 |e finder| every t|
|00006390| 69 6d 65 20 0d 74 6f 20 | 62 72 6f 77 73 65 20 74 |ime .to |browse t|
|000063a0| 68 72 6f 75 67 68 20 79 | 6f 75 72 20 6c 65 74 74 |hrough y|our lett|
|000063b0| 65 72 73 20 69 73 20 74 | 65 64 69 6f 75 73 20 61 |ers is t|edious a|
|000063c0| 74 20 62 65 73 74 2e 0d | 0d 41 64 72 69 61 6e 0d |t best..|.Adrian.|
|000063d0| 0d 2b 2b 2b 2b 2b 2b 2b | 2b 2b 2b 2b 2b 2b 2b 2b |.+++++++|++++++++|
|000063e0| 2b 2b 2b 2b 2b 2b 2b 2b | 2b 2b 2b 2b 0d 0d 3e 46 |++++++++|++++..>F|
|000063f0| 72 6f 6d 20 53 74 65 76 | 65 20 42 72 79 61 6e 20 |rom Stev|e Bryan |
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.